:root { --primary: #3b82f6; --primary-dark: #2563eb; --glass-bg: rgba(255, 255, 255, 0.95); --glass-border: rgba(255, 255, 255, 0.8); --text-main: #1e293b; --text-muted: #64748b; --error-bg: rgba(255, 241, 242, 0.95); --error-border: #fda4af; --error-text: #be123c; }
body.auth-body { margin: 0; font-family: 'Manrope', sans-serif; background: #f8fafc; width: 100%; min-height: 100dvh; height: auto !important; display: flex; flex-direction: column; opacity: 1 !important; overflow-y: auto !important; overflow-x: hidden; position: relative; }
.auth-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; background: #f8fafc; }
.blob { position: absolute; border-radius: 50%; opacity: 0.5; animation: float 20s infinite ease-in-out; will-change: transform; transform: translateZ(0); }
.blob-1 { top: -10%; left: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, #60a5fa 0%, transparent 70%); animation-delay: 0s; }
.blob-2 { bottom: -10%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, #3b82f6 0%, transparent 70%); animation-delay: -5s; }
.blob-3 { bottom: 20%; left: 20%; width: 40vw; height: 40vw; background: radial-gradient(circle, #0ea5e9 0%, transparent 70%); animation-delay: -10s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(30px, -50px); } 66% { transform: translate(-20px, 20px); } }
.auth-wrapper { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; position: relative; z-index: 10; width: 100%; box-sizing: border-box; min-height: 100dvh; }
.auth-container { width: 100%; max-width: 420px; margin: auto; perspective: 1000px; }
.auth-card { background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: 32px; padding: 40px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08); position: relative; transition: padding 0.3s ease; }
.auth-header { margin-bottom: 32px; text-align: center; }
.auth-title { font-size: 28px; font-weight: 800; color: var(--text-main); margin: 0 0 8px 0; letter-spacing: -0.5px; line-height: 1.2; }
.auth-subtitle { font-size: 15px; color: var(--text-muted); font-weight: 500; line-height: 1.5; }
.switch-tabs { display: flex; background: rgba(0, 0, 0, 0.04); padding: 5px; border-radius: 16px; margin-bottom: 24px; }
.tab-link { flex: 1; text-align: center; padding: 10px; font-size: 14px; font-weight: 700; color: var(--text-muted); text-decoration: none; border-radius: 12px; transition: all 0.2s ease; cursor: pointer; }
.tab-link.active { color: var(--primary-dark); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transform: scale(1.02); }
.tab-link:hover:not(.active) { color: var(--text-main); background: rgba(255,255,255,0.5); }
.form-group { margin-bottom: 20px; position: relative; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; margin-left: 4px; }
.form-input { width: 100%; padding: 14px 16px; border-radius: 18px; border: 2px solid transparent; background: #f1f5f9; font-size: 15px; color: var(--text-main); outline: none; transition: all 0.2s ease; box-sizing: border-box; font-weight: 500; -webkit-appearance: none; }
.form-input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15); transform: translateY(-1px); }
.form-input:hover:not(:focus) { background: #e2e8f0; }
.form-input.has-error { background: #fff1f2; border-color: #fca5a5; }
.form-input.has-error:focus { border-color: #e11d48; box-shadow: 0 4px 12px rgba(225, 29, 72, 0.15); }
.error-msg { display: flex; align-items: center; gap: 12px; background: var(--error-bg); border: 1px solid var(--error-border); color: var(--error-text); padding: 14px 16px; border-radius: 18px; font-size: 14px; font-weight: 700; margin-bottom: 24px; box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.15); animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.error-msg svg { width: 20px; height: 20px; flex-shrink: 0; }
.success-msg { display: flex; align-items: center; gap: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; padding: 14px 16px; border-radius: 18px; font-size: 14px; font-weight: 700; margin-bottom: 24px; box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.15); animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.success-msg svg { width: 20px; height: 20px; flex-shrink: 0; }
.error-bubble { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 240px; max-width: 280px; width: max-content; background: var(--error-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--error-text); font-size: 12px; font-weight: 600; padding: 10px 14px; border-radius: 16px; border-top-left-radius: 4px; border: 1px solid var(--error-border); box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.2); display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); transform-origin: top left; }
.error-bubble svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: #e11d48; }
.super-input-group .form-group:last-child .error-bubble { left: auto; right: 0; border-top-left-radius: 16px; border-top-right-radius: 4px; transform-origin: top right; }
@keyframes popIn { 0% { opacity: 0; transform: translateY(-8px) scale(0.9); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.super-input-group { display: flex; gap: 16px; transition: margin-bottom 0.3s ease; }
.super-input-group:has(.has-error) { margin-bottom: 55px !important; }
.input-prefix-wrapper { position: relative; width: 100%; }
.input-prefix-symbol { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-weight: 700; font-size: 16px; pointer-events: none; transition: 0.2s; z-index: 2; font-family: monospace; }
.input-with-prefix { padding-left: 38px !important; }
.input-prefix-wrapper input:focus + .input-prefix-symbol, .input-prefix-wrapper input:not(:placeholder-shown) + .input-prefix-symbol { color: var(--primary); transform: translateY(-50%) scale(1.1); }
.super-input-group .form-group { flex: 1; min-width: 0; }
.auth-btn { width: 100%; padding: 16px; border: none; border-radius: 18px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; font-size: 16px; font-weight: 800; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4); margin-top: 12px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.5); }
.auth-btn:active { transform: scale(0.96); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 6px; }
.emoji-label { display: flex; align-items: center; justify-content: center; height: 40px; font-size: 22px; cursor: pointer; border-radius: 12px; background: rgba(255,255,255,0.5); transition: 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); border: 2px solid transparent; }
.emoji-radio { display: none; }
.emoji-radio:checked + .emoji-label { background: #fff; border-color: var(--primary); transform: scale(1.1); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15); z-index: 2; }
.emoji-label:hover { background: #fff; transform: scale(1.05); }
.label-split { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; margin-left: 4px; }
.label-split .form-label { margin-bottom: 0; margin-left: 0; }
.forgot-link { font-size: 12px; font-weight: 600; color: var(--primary); text-decoration: none; transition: 0.2s; opacity: 0.9; }
.forgot-link:hover { opacity: 1; text-decoration: underline; }
.back-link { display: block; text-align: center; margin-top: 24px; font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.back-link:hover { color: var(--text-main); }
.checkbox-wrapper { display: flex; align-items: center; cursor: pointer; user-select: none; margin-top: -4px; margin-bottom: 20px; }
.checkbox-input { display: none; }
.checkbox-custom { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #cbd5e1; margin-right: 10px; display: flex; align-items: center; justify-content: center; background: #fff; transition: 0.2s; flex-shrink: 0; }
.checkbox-input:checked + .checkbox-custom { background: var(--primary); border-color: var(--primary); }
.checkbox-custom svg { width: 12px; height: 12px; color: white; display: none; }
.checkbox-input:checked + .checkbox-custom svg { display: block; }
.checkbox-text { font-size: 14px; color: var(--text-muted); font-weight: 600; }
@media (max-width: 600px) { .auth-wrapper { padding: 16px; align-items: flex-start; } .auth-card { padding: 28px 20px; border-radius: 24px; } .super-input-group { flex-direction: column; gap: 0; } .super-input-group:has(.has-error) { margin-bottom: 0 !important; } .error-bubble { position: relative; top: 0; width: 100%; min-width: 0; margin-top: 6px; } .emoji-grid { grid-template-columns: repeat(6, 1fr); gap: 6px; } .blob-1 { top: -15%; left: -25%; width: 90vw; height: 90vw; opacity: 0.4; } .blob-2 { bottom: -15%; right: -25%; width: 80vw; height: 80vw; opacity: 0.4; } .blob-3 { display: none; } }
@media (max-width: 360px) { .emoji-grid { grid-template-columns: repeat(4, 1fr); } .auth-btn { font-size: 15px; padding: 14px; } }