/* ============ AUTH PAGE — Script Kittens ============ */
/* 3D Robot left panel + clean auth right panel        */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

body {
    font-family: 'Inter', 'Space Grotesk', -apple-system, sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── MAIN LAYOUT ── */
.auth-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ═══════════════════════════════════════════════ */
/* LEFT PANEL                                      */
/* ═══════════════════════════════════════════════ */
.auth-left {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #000;
    border-right: 1px solid rgba(255,255,255,0.06);
}

/* ── LOADING — clean shimmer bar ── */
.auth-loader {
    position: absolute;
    inset: 0;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    transition: opacity 1s ease, visibility 1s ease;
}
.auth-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Subtle shimmer bar — not a spinner */
.auth-loader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}
.auth-loader-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    animation: shimmer 1.2s ease-in-out infinite;
}
@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

.auth-loader-text {
    color: rgba(255,255,255,0.25);
    font-size: 12px;
    font-weight: 500;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 1px;
}

/* ── SPLINE 3D VIEWER ── */
.auth-spline-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease;
}
.auth-spline-wrap.loaded {
    opacity: 1;
}

.auth-spline {
    width: 100%;
    height: 100%;
    display: block;
}

/* HIDE Spline watermark */
.auth-spline-wrap spline-viewer {
    --spline-viewer-logo-display: none;
}

/* Bottom tab — covers Spline watermark + blocks cursor there */
.auth-spline-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 105px;
    background: linear-gradient(to top, #000 40%, transparent 100%);
    z-index: 15;
    pointer-events: auto;
    cursor: default;
}

/* ── GRADIENT OVERLAY for text legibility ── */
.auth-left-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 30%),
        linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 20%, transparent 45%);
    pointer-events: none;
}

/* ── CONTENT ON TOP ── */
.auth-left-content {
    position: relative;
    z-index: 30;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding: 40px 48px;
    pointer-events: none;
}
.auth-left-content a,
.auth-left-content button {
    pointer-events: auto;
}

/* ── LOGO ── */
.auth-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}
.auth-logo-link:hover { opacity: 0.8; }

.auth-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    background: #111;
}
.auth-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}

/* ── TESTIMONIAL CAROUSEL ── */
.auth-testimonial-area {
    position: relative;
}

.auth-testimonial-slider {
    position: relative;
    min-height: 110px;
}

.auth-testimonial-slide {
    position: absolute;
    left: 0; right: 0; top: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    visibility: hidden;
}
.auth-testimonial-slide.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.auth-testimonial-quote {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin-bottom: 12px;
}

.auth-testimonial-name {
    font-family: 'Space Grotesk', monospace;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
}

.auth-testimonial-nav {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.auth-testimonial-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.auth-testimonial-arrow:hover {
    border-color: rgba(255,255,255,0.35);
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* ═══════════════════════════════════ */
/* RIGHT PANEL                        */
/* ═══════════════════════════════════ */
.auth-right {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 60px;
    min-height: 100vh;
    overflow: visible;
}

.auth-right-glow {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 0;
}
.auth-right-glow::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 500px; height: 500px;
    background: radial-gradient(68% 69% at 55% 31%, rgba(255,255,255,0.03) 0%, rgba(140,140,140,0.01) 50%, transparent 80%);
    transform: translate(10%, -55%);
    border-radius: 50%;
}

/* Back button — solid white, always visible */
.auth-back-btn {
    position: fixed;
    top: 28px; left: 50%;
    margin-left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.auth-back-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.auth-back-btn i { font-size: 11px; transition: transform 0.2s ease; }
.auth-back-btn:hover i { transform: translateX(-2px); }

/* Mobile logo */
.auth-mobile-logo {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.auth-mobile-logo-img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.auth-mobile-logo-text { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 700; }

/* ── FORM CONTAINER ── */
.auth-form-container {
    width: 100%;
    max-width: 384px;
    position: relative;
    z-index: 1;
}

/* ── AUTH STEPS ── */
.auth-step {
    display: none;
    flex-direction: column;
    animation: stepFadeIn 0.3s ease;
}
.auth-step.active { display: flex; }

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

.auth-step-back {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: none;
    color: rgba(255,255,255,0.35); font-size: 13px; font-weight: 500;
    font-family: 'Inter', sans-serif; cursor: pointer;
    padding: 0; margin-bottom: 24px; transition: color 0.2s ease;
}
.auth-step-back:hover { color: #fff; }
.auth-step-back i { font-size: 11px; }

/* ── HEADING ── */
.auth-heading { margin-bottom: 24px; }
.auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px; font-weight: 700;
    color: #fff; letter-spacing: -0.02em; margin-bottom: 6px;
}
.auth-subtitle { font-size: 15px; color: rgba(255,255,255,0.4); line-height: 1.5; }
.auth-user-email { color: rgba(220,38,38,0.8); font-weight: 500; }

/* ═══════════════════════ */
/* SOCIAL BUTTONS          */
/* ═══════════════════════ */
.auth-social {
    display: flex; flex-direction: column;
    gap: 8px; margin-bottom: 20px;
}
.auth-social-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 44px; padding: 0 32px;
    background: #fff; border: none; border-radius: 8px;
    color: #0a0a0a; font-size: 14px; font-weight: 600;
    font-family: 'Inter', sans-serif; cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
.auth-social-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.auth-social-btn i { font-size: 16px; flex-shrink: 0; }
.auth-social-btn:hover { background: rgba(255,255,255,0.88); }
.auth-social-btn:active { transform: scale(0.98); }

/* ── DIVIDER ── */
.auth-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.auth-divider-line { flex: 1; height: 1px; background: rgba(255,255,255,0.08); }
.auth-divider span { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.25); letter-spacing: 0.5px; }

.auth-email-label { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 8px; line-height: 1.5; }

/* ── FORMS ── */
form { display: flex; flex-direction: column; gap: 12px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
    font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,0.5); font-family: 'Inter', sans-serif;
    transition: color 0.2s ease;
}
.auth-field:focus-within label { color: rgba(255,255,255,0.8); }

.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-icon {
    position: absolute; left: 12px; font-size: 14px;
    color: rgba(255,255,255,0.25); transition: color 0.2s ease;
    z-index: 2; pointer-events: none;
}
.auth-input-wrap:focus-within .auth-input-icon { color: rgba(255,255,255,0.5); }

.auth-input {
    width: 100%; height: 40px; padding: 0 12px 0 36px;
    background: transparent; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; color: #fff;
    font-family: 'Inter', sans-serif; font-size: 14px; outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-input::placeholder { color: rgba(255,255,255,0.25); }
.auth-input:focus { border-color: rgba(220,38,38,0.5); box-shadow: 0 0 0 2px rgba(220,38,38,0.12); }
.auth-input:hover:not(:focus) { border-color: rgba(255,255,255,0.2); }

.auth-password-wrap .auth-input { padding-right: 42px; }
.auth-pw-toggle {
    position: absolute; right: 12px; background: none; border: none;
    color: rgba(255,255,255,0.25); cursor: pointer; font-size: 14px;
    padding: 4px; z-index: 2; transition: color 0.2s ease;
}
.auth-pw-toggle:hover { color: rgba(255,255,255,0.6); }

/* Password strength */
.auth-password-strength {
    display: flex; align-items: center; gap: 10px;
    margin-top: 4px; opacity: 0; transition: opacity 0.3s ease;
}
.auth-password-strength.visible { opacity: 1; }
.auth-strength-bar { flex: 1; height: 3px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.auth-strength-fill { height: 100%; width: 0%; border-radius: 3px; transition: width 0.4s ease, background 0.4s ease; }
.auth-strength-fill.weak   { width: 25%; background: #ef4444; }
.auth-strength-fill.fair   { width: 50%; background: #f59e0b; }
.auth-strength-fill.good   { width: 75%; background: #3b82f6; }
.auth-strength-fill.strong { width: 100%; background: #22c55e; }
.auth-strength-text { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; min-width: 45px; }
.auth-strength-text.weak   { color: #ef4444; }
.auth-strength-text.fair   { color: #f59e0b; }
.auth-strength-text.good   { color: #3b82f6; }
.auth-strength-text.strong { color: #22c55e; }

.auth-options { display: flex; justify-content: space-between; align-items: center; }
.auth-remember {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; font-size: 13px; color: rgba(255,255,255,0.4);
    user-select: none; transition: color 0.2s ease;
}
.auth-remember:hover { color: rgba(255,255,255,0.65); }
.auth-remember input { display: none; }
.auth-checkbox {
    width: 16px; height: 16px; border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; flex-shrink: 0;
}
.auth-checkbox::after {
    content: ''; width: 8px; height: 5px;
    border-left: 2px solid transparent; border-bottom: 2px solid transparent;
    transform: rotate(-45deg) scale(0);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); margin-top: -2px;
}
.auth-remember input:checked ~ .auth-checkbox { background: #dc2626; border-color: #dc2626; }
.auth-remember input:checked ~ .auth-checkbox::after { border-color: #fff; transform: rotate(-45deg) scale(1); }

.auth-forgot { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.2s ease; }
.auth-forgot:hover { color: #dc2626; }

/* ═══════════════════════ */
/* SUBMIT BUTTON           */
/* ═══════════════════════ */
.auth-submit {
    width: 100%; height: 40px; padding: 0 16px;
    background: #fff; border: none; border-radius: 8px;
    color: #0a0a0a; font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    position: relative; overflow: hidden;
    transition: background 0.15s ease, transform 0.1s ease;
}
.auth-submit:hover { background: rgba(255,255,255,0.88); }
.auth-submit:active { transform: scale(0.98); }
.auth-submit i { font-size: 11px; color: #0a0a0a; }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.auth-submit.loading span { opacity: 0; }
.auth-submit.loading i { display: none; }
.auth-submit.loading::after {
    content: ''; width: 18px; height: 18px;
    border: 2px solid rgba(10,10,10,0.15); border-top-color: #0a0a0a;
    border-radius: 50%; animation: spin 0.6s linear infinite; position: absolute;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-legal { font-size: 13px; color: rgba(255,255,255,0.3); line-height: 1.6; margin-top: 24px; }
.auth-legal a { color: rgba(255,255,255,0.5); text-decoration: underline; text-underline-offset: 4px; transition: color 0.2s ease; }
.auth-legal a:hover { color: #dc2626; }

.auth-secure {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 24px; padding: 12px;
    color: rgba(255,255,255,0.15); font-size: 11px; font-weight: 500;
}
.auth-secure i { color: rgba(34,197,94,0.4); font-size: 11px; }

.auth-message {
    padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
    display: flex; align-items: center; gap: 8px;
    animation: stepFadeIn 0.3s ease; margin-bottom: 8px;
}
.auth-message.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #fca5a5; }
.auth-message.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: #86efac; }

/* ═══════════════════════ */
/* RESPONSIVE              */
/* ═══════════════════════ */
@media (max-width: 1024px) {
    .auth-left-content { padding: 32px; }
    .auth-right { padding: 40px 36px; }
    .auth-testimonial-quote { font-size: 17px; }
}
@media (max-width: 768px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .auth-right { padding: 80px 24px 40px; min-height: 100vh; justify-content: flex-start; }
    .auth-mobile-logo { display: flex; }
    .auth-back-btn { top: 24px; left: 16px; margin-left: 0; }
    .auth-form-container { max-width: 100%; }
}
@media (max-width: 480px) {
    .auth-right { padding: 70px 18px 30px; }
    .auth-title { font-size: 22px; }
    .auth-social-btn { height: 42px; font-size: 13px; }
}
@media (max-width: 390px) { .auth-back-btn span { display: none; } }

/* ── SAFETY NET — logo + back button must never be invisible ── */
.auth-logo-link,
.auth-back-btn {
    opacity: 1 !important;
    visibility: visible !important;
}
