/* =====================================================
   NootiGO Auth Pages — Minimal Dark Violet
   ===================================================== */

:root {
    --primary: #a855f7;
    --primary-light: #c084fc;
    --primary-glow: rgba(168, 85, 247, 0.3);
    --dark: #0c0c0f;
    --dark-100: #111115;
    --white: #ffffff;
    --gray-300: #98a2b3;
    --gray-400: #667085;
    --font-primary: 'Inter', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body.auth-page {
    font-family: var(--font-primary);
    background: var(--dark);
    color: var(--white);
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow-x: hidden;
}

.auth-bg { position: fixed; inset: 0; z-index: 0; }
.auth-hex { position: absolute; inset: 0; width: 100%; height: 100%; }

.auth-glow {
    position: absolute; border-radius: 50%; filter: blur(120px);
}

.auth-glow--1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 70%);
    top: -150px; right: -100px;
    animation: auth-pulse 8s ease-in-out infinite;
}

.auth-glow--2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    animation: auth-pulse 10s ease-in-out infinite 3s;
}

@keyframes auth-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.auth-container {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
    gap: 24px; width: 100%; max-width: 460px; padding: 24px;
    animation: auth-fadein 0.6s ease-out;
}

@keyframes auth-fadein {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-logo img { height: 40px; transition: var(--transition); }
.auth-logo:hover img { filter: brightness(1.2); }

.glass-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg); padding: 40px 36px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.auth-card--register { max-width: 480px; }

.auth-card__header { text-align: center; margin-bottom: 28px; }
.auth-card__header h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; }
.auth-card__header p { color: var(--gray-400); font-size: 0.9rem; }

.steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 28px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.step__circle {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700;
    background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.08);
    color: var(--gray-400); transition: var(--transition);
}

.step.active .step__circle {
    background: var(--primary); border-color: var(--primary);
    color: var(--white); box-shadow: 0 0 20px var(--primary-glow);
}

.step.completed .step__circle {
    background: rgba(168,85,247,0.15); border-color: var(--primary);
    color: var(--primary);
}

.step__label { font-size: 0.7rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; }
.step.active .step__label { color: var(--primary); }
.step.completed .step__label { color: var(--primary); }

.step__line {
    width: 40px; height: 2px; background: rgba(255,255,255,0.06);
    margin: 0 8px; margin-bottom: 20px; transition: var(--transition);
}

.auth-form { display: flex; flex-direction: column; gap: 8px; }

.form-step { display: none; flex-direction: column; gap: 16px; animation: step-fade 0.4s ease-out; }
.form-step.active { display: flex; }

@keyframes step-fade {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-step__actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem; font-weight: 500; color: var(--gray-300);
}
.form-label i { font-size: 0.9rem; color: var(--primary); }

.form-input {
    width: 100%; padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1.5px solid rgba(255,255,255,0.07);
    border-radius: var(--radius); color: var(--white);
    font-family: var(--font-primary); font-size: 0.95rem;
    outline: none; transition: var(--transition);
}

.form-input::placeholder { color: rgba(255,255,255,0.18); }

.form-input:focus {
    border-color: var(--primary);
    background: rgba(168,85,247,0.03);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.1);
}

.form-select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
    padding-right: 40px;
}
.form-select option { background: #1a1a1e; color: var(--white); }

.form-hint { font-size: 0.75rem; color: var(--gray-400); }
.form-hint--success { color: #10b981; }
.form-hint--error { color: #ef4444; }

.input-password { position: relative; }
.input-password .form-input { padding-right: 48px; }

.password-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--gray-400);
    cursor: pointer; padding: 4px; font-size: 1.1rem; transition: var(--transition);
}
.password-toggle:hover { color: var(--primary); }

.password-strength {
    height: 3px; background: rgba(255,255,255,0.05);
    border-radius: 2px; overflow: hidden; margin-top: 4px;
}
.password-strength__bar { height: 100%; width: 0; border-radius: 2px; transition: width 0.4s ease, background 0.4s ease; }

.strength--weak { background: #ef4444; }
.strength--fair { background: #f59e0b; }
.strength--good { background: #a855f7; }
.strength--strong { background: #10b981; }

.alert {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: var(--radius);
    font-size: 0.88rem; margin-bottom: 16px;
    animation: alert-slide 0.4s ease-out;
}

@keyframes alert-slide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert--error { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.15); color: #fca5a5; }
.alert--success { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.15); color: #86efac; }
.alert--inline { margin-bottom: 12px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 28px; border-radius: 50px;
    font-family: var(--font-primary); font-weight: 600; font-size: 0.95rem;
    text-decoration: none; border: none; cursor: pointer; transition: var(--transition);
}

.btn--primary {
    background: var(--primary); color: var(--white);
    box-shadow: 0 0 20px var(--primary-glow);
}
.btn--primary:hover {
    background: var(--primary-light);
    box-shadow: 0 0 32px var(--primary-glow);
    transform: translateY(-1px);
}

.btn--ghost { background: rgba(255,255,255,0.05); color: var(--white); border: 1px solid rgba(255,255,255,0.08); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }

.btn--full { width: 100%; }
.btn--lg { padding: 16px 32px; }

.auth-card__footer { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--gray-400); }
.auth-card__footer a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-card__footer a:hover { text-decoration: underline; }

.auth-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--gray-400); text-decoration: none;
    font-size: 0.85rem; transition: var(--transition);
}
.auth-back:hover { color: var(--primary); }

.iti { width: 100%; }
.iti__country-list { background: #1a1a1e; border-color: rgba(255,255,255,0.08); }
.iti__country { color: #fff; }
.iti__country:hover, .iti__country.iti__highlight { background: rgba(168,85,247,0.08); }
.iti__selected-flag { border-radius: var(--radius) 0 0 var(--radius); }
.iti__dial-code { color: var(--gray-300); }
.iti__divider { border-color: rgba(255,255,255,0.06); }
.iti--separate-dial-code .iti__selected-flag {
    background: rgba(255,255,255,0.03);
    border-right: 1px solid rgba(255,255,255,0.06);
}

.sponsor-banner {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; background: rgba(168,85,247,0.04);
    border: 1px solid rgba(168,85,247,0.1);
    border-radius: var(--radius); margin-bottom: 20px;
}

.sponsor-banner__icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(168,85,247,0.08); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}

.sponsor-banner__text { font-size: 0.85rem; color: var(--gray-400); }
.sponsor-banner__name { font-weight: 700; color: var(--primary); }

.form-select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23667085' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 36px;
}

@media (max-width: 480px) {
    .auth-container { padding: 16px; }
    .glass-card { padding: 28px 22px; }
    .form-step__actions { grid-template-columns: 1fr; }
}
