/* =====================================================
   NootiGO Auth Pages — Split Layout v8
   Video panel left + Form right | Dark Premium
   ===================================================== */

:root {
    --primary: #00b0f0;
    --primary-light: #33c4f5;
    --primary-dark: #0090cc;
    --primary-glow: rgba(0, 176, 240, 0.25);
    --dark: #0e1225;
    --dark-50: #131730;
    --dark-100: #181d38;
    --dark-200: #1e2340;
    --dark-300: #252b4a;
    --white: #ffffff;
    --gray-200: #d1d5db;
    --gray-300: #9ca3af;
    --gray-400: #6b7280;
    --gray-500: #4b5563;
    --success: #10b981;
    --danger: #ef4444;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 10px;
    --radius-lg: 16px;
    --ease: 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);
    background: var(--dark);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ====== SPLIT LAYOUT ====== */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ====== LEFT PANEL (Video + Branding) ====== */
.auth-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-panel__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.auth-panel__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(14,18,37,0.82) 0%, rgba(14,18,37,0.45) 50%, rgba(14,18,37,0.78) 100%),
        linear-gradient(to bottom, rgba(14,18,37,0.4) 0%, transparent 30%, transparent 60%, rgba(14,18,37,0.7) 100%);
}

.auth-panel__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 32px 40px;
    text-align: center;
}

.auth-panel__logo img {
    height: 36px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.auth-panel__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 380px;
}

.auth-panel__product {
    width: 160px;
    animation: panelFloat 5s ease-in-out infinite;
}

.auth-panel__product img {
    width: 100%;
    filter: drop-shadow(0 16px 48px rgba(0,176,240,0.3));
}

@keyframes panelFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.auth-panel__hero h2 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.auth-panel__hero p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.auth-panel__badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.auth-panel__badges span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(0,176,240,0.1);
    color: var(--primary-light);
    border: 1px solid rgba(0,176,240,0.15);
    backdrop-filter: blur(8px);
}

.auth-panel__badges span i { font-size: 0.8rem; }

.auth-panel__stats {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.auth-panel__stat {
    text-align: center;
}

.auth-panel__stat strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-light);
    letter-spacing: -0.02em;
}

.auth-panel__stat span {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.auth-panel__footer p {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.1em;
}

/* ====== RIGHT SIDE (Form) ====== */
.auth-form-side {
    display: flex;
    flex-direction: column;
    background: var(--dark-50);
    position: relative;
}

.auth-form-side__top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 32px;
}

.auth-form-side__hint {
    font-size: 0.82rem;
    color: var(--gray-400);
}

.auth-form-side__link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(0,176,240,0.2);
    transition: all 0.3s var(--ease);
}

.auth-form-side__link:hover {
    background: rgba(0,176,240,0.06);
    border-color: var(--primary);
}

.auth-form-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    animation: formFadeIn 0.6s ease-out;
}

@keyframes formFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-form-wrap__header {
    margin-bottom: 32px;
}

.auth-form-wrap__icon {
    margin-bottom: 20px;
}

.auth-form-wrap__logo-sm {
    height: 32px;
}

.auth-form-wrap__header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.auth-form-wrap__header p {
    font-size: 0.88rem;
    color: var(--gray-400);
}

.auth-form-wrap__footer {
    margin-top: 24px;
    text-align: center;
}

.auth-form-side__bottom {
    padding: 16px 32px;
    text-align: center;
}

.auth-form-side__bottom p {
    font-size: 0.72rem;
    color: var(--gray-500);
}

/* ====== FORM ELEMENTS ====== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.form-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-300);
    letter-spacing: 0.01em;
}

.form-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-wrap > i {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    color: var(--gray-500);
    z-index: 1;
    pointer-events: none;
    transition: color 0.3s var(--ease);
}

.form-input-wrap:focus-within > i {
    color: var(--primary);
}

.form-input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    background: var(--dark-200);
    border: 1.5px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.92rem;
    outline: none;
    transition: all 0.3s var(--ease);
}

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

.form-input:focus {
    border-color: var(--primary);
    background: rgba(0,176,240,0.03);
    box-shadow: 0 0 0 3px rgba(0,176,240,0.08);
}

.form-input-wrap--select .form-input {
    padding-right: 36px;
}

.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='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.form-select option { background: var(--dark-200); color: var(--white); }
.form-select optgroup { font-weight: 700; color: var(--gray-300); }

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

.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: color 0.3s var(--ease);
    z-index: 1;
}

.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: var(--danger); }
.strength--fair { background: #f59e0b; }
.strength--good { background: var(--primary); }
.strength--strong { background: var(--success); }

/* ====== REGISTRATION STEPS ====== */
.reg-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}

.reg-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reg-step__indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-300);
    border: 2px solid rgba(255,255,255,0.07);
    color: var(--gray-400);
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.4s var(--ease);
    position: relative;
}

.reg-step__check { display: none; }

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

.reg-step.completed .reg-step__indicator {
    background: rgba(0,176,240,0.12);
    border-color: var(--primary);
    color: var(--primary);
}

.reg-step.completed .reg-step__num { display: none; }
.reg-step.completed .reg-step__check { display: flex; }

.reg-step__text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reg-step.active .reg-step__text { color: var(--primary-light); }
.reg-step.completed .reg-step__text { color: var(--primary); }

.reg-step__line {
    width: 48px;
    height: 2px;
    background: rgba(255,255,255,0.07);
    margin: 0 12px;
    transition: background 0.4s var(--ease);
}

.form-step {
    display: none;
    flex-direction: column;
    gap: 6px;
    animation: stepSlide 0.45s ease-out;
}

.form-step.active { display: flex; }

@keyframes stepSlide {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-step__actions {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 10px;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.btn--primary {
    background: linear-gradient(135deg, #00b0f0, #0090cc);
    color: #fff;
    box-shadow: 0 2px 16px var(--primary-glow);
}

.btn--primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 24px var(--primary-glow);
    transform: translateY(-1px);
}

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

.btn--ghost:hover {
    background: rgba(255,255,255,0.07);
}

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

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

@keyframes alertFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert--error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

.alert--success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.18);
    color: #86efac;
}

.alert--inline { margin-bottom: 12px; }

/* ====== SPONSOR BANNER ====== */
.sponsor-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0,176,240,0.04);
    border: 1px solid rgba(0,176,240,0.1);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.sponsor-banner__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0,176,240,0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

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

/* ====== BACK LINK ====== */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.3s var(--ease);
}

.auth-back:hover { color: var(--primary); }

/* ====== intl-tel-input overrides ====== */
.iti { width: 100%; }
.iti__country-list { background: var(--dark-200); border-color: rgba(255,255,255,0.08); }
.iti__country { color: #fff; }
.iti__country:hover, .iti__country.iti__highlight { background: rgba(0,176,240,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: var(--dark-300);
    border-right: 1px solid rgba(255,255,255,0.07);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        display: none;
    }

    .auth-form-side {
        min-height: 100vh;
    }

    .auth-form-wrap {
        max-width: 440px;
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .auth-form-side__top {
        padding: 16px 20px;
    }

    .auth-form-wrap {
        padding: 0 20px;
    }

    .form-step__actions {
        grid-template-columns: 1fr;
    }

    .auth-form-wrap__header h1 {
        font-size: 1.4rem;
    }

    .reg-steps {
        gap: 0;
    }

    .reg-step__text {
        font-size: 0.68rem;
    }
}
