/* ═══════════════════════════════════════════════════════════════════
   auth-forgot-v3.css — XplagiaX MarkTrack
   Visual parity with auth-login-inline.css (Dark Glass v3)
   ══════════════════════════════════════════════════════════════════════ */

:root {
    --primary:           #2563eb;
    --primary-dark:      #1d4ed8;
    --primary-light:     #3b82f6;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end:   #1e293b;
    --card-bg:           rgba(255, 255, 255, 0.03);
    --card-border:       rgba(255, 255, 255, 0.08);
    --text-primary:      #f8fafc;
    --text-secondary:    #94a3b8;
    --text-muted:        #64748b;
    --error:             #ef4444;
    --success:           #22c55e;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 12% 12%, #4a7298 0%, #2a3b55 40%, #5d4a4a 80%, #7a6050 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    color: var(--text-primary);
}

.bg-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.bg-glow::before,
.bg-glow::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}
.bg-glow::before { background: var(--primary); top: -300px; left: -300px; }
.bg-glow::after  { background: #3b82f6; bottom: -300px; right: -300px; animation-delay: -10s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(50px, 30px) scale(1.1); }
}

.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 900px;
    max-width: 95vw;
    height: 580px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.forms-area {
    flex: 1.2;
    padding: 44px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(15, 23, 42, 0.2);
}

.overlay-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-left: 1px solid var(--card-border);
}

.overlay-img {
    position: absolute;
    inset: 0;
    background-image: url('/static/brain/auth_branding_image_signin.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.overlay-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.62) 0%, rgba(37, 99, 235, 0.38) 100%);
    z-index: 1;
}

.overlay-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 40px;
    color: white;
}

.overlay-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.22);
    border: 1px solid rgba(59, 130, 246, 0.32);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    margin-bottom: 20px;
}

.overlay-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.overlay-content p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.6;
}

.app-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
    margin-bottom: 24px;
}

.form-header { margin-bottom: 30px; }
h1 { font-size: 1.6rem; margin-bottom: 8px; }
.subtitle { color: var(--text-secondary); font-size: 0.9rem; }

.form-group { margin-bottom: 1.2rem; }
label { display: block; margin-bottom: 8px; font-size: 0.85rem; font-weight: 500; color: #ffffff; opacity: 1; }
input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
}
input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 10px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.5);
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 0.85rem;
}
.back-link a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}
.back-link a:hover { text-decoration: underline; }

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
.notification.show { transform: translateX(0); }
.notification-success { background: var(--success); }
.notification-error { background: var(--error); }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER — Powered by Uryx
══════════════════════════════════════════════════════════════════════ */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0);
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    color: #8c909c; /* Subtle grey for dark theme, inspired by user's #32353c */
    z-index: 100;
    font-weight: 500;
    pointer-events: none;
}
.footer img {
    height: 18px;
    vertical-align: middle;
    margin: 0 5px;
    opacity: 0.7;
    filter: brightness(0) invert(1);
}

@media (max-width: 900px) {
    body {
        padding: 20px;
    }
    .auth-wrapper {
        width: 100%;
        max-width: 450px;
        height: auto;
        flex-direction: column;
        margin: 0 auto;
    }
    .overlay-container {
        display: none;
    }
    .forms-area {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    .auth-wrapper {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        border: none;
        margin: 0;
    }
    .forms-area {
        height: 100vh;
        border-radius: 0;
        padding: 30px 20px;
    }
    h1 {
        font-size: 1.5rem;
    }
    .app-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 20px;
    }
    .app-icon svg {
        width: 20px;
        height: 20px;
    }
}
