/* ======================================
   StatsAlpha Password Reset Page Styles
   ====================================== */

/* ─────── Container & Background ─────── */
.password-reset-container {
    min-height: 100vh;
    background: linear-gradient(135deg,
            var(--surface-0) 0%,
            var(--surface-1) 50%,
            var(--surface-2) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-reset-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--bs-primary-100) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.password-reset-container::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--bs-secondary-100) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ─────── Reset Card ─────── */
#password-reset-card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
    max-width: 420px;
    width: 100%;
    margin: 20px;
}

[data-bs-theme="dark"] #password-reset-card {
    background: rgba(17, 24, 39, 0.95);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────── Back Link ─────── */
.back-link {
    font-size: 14px;
    color: var(--bs-body-color);
    opacity: 0.7;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.back-link:hover {
    opacity: 1;
    color: var(--bs-primary);
    transform: translateX(-4px);
}

/* ─────── Headings ─────── */
.password-reset-title {
    font-family: var(--font-family-b);
    font-weight: 600;
    font-size: 28px;
    color: var(--bs-body-color);
    margin-bottom: 8px;
}

.password-reset-subtitle {
    font-family: var(--font-family-a);
    font-size: 15px;
    color: var(--bs-muted);
    font-weight: 400;
    line-height: 1.5;
}

/* ─────── Form Elements ─────── */
.form-label {
    font-family: var(--font-family-b);
    font-weight: 600;
    font-size: 14px;
    color: var(--bs-body-color);
    margin-bottom: 8px;
}

.form-control {
    border-radius: 10px;
    border: 1.5px solid var(--bs-border-color);
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: var(--surface-0);
    color: var(--bs-body-color);
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px var(--bs-primary-100);
    background: var(--surface-0);
}

.form-control::placeholder {
    color: var(--bs-muted);
    opacity: 0.6;
}

[data-bs-theme="dark"] .form-control {
    background: var(--surface-1);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .form-control:focus {
    background: var(--surface-1);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* ─────── Submit Button ─────── */
.btn-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-700) 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-family: var(--font-family-b);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, var(--bs-primary-700) 0%, var(--bs-primary) 100%);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

[data-bs-theme="dark"] .btn-primary {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* ─────── Sign-in Link ─────── */
.signin-prompt {
    font-size: 14px;
    color: var(--bs-muted);
}

.signin-prompt a {
    color: var(--bs-primary);
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.signin-prompt a:hover {
    color: var(--bs-primary-700);
    text-decoration: underline !important;
}

/* ─────── Error/Success Messages ─────── */
.alert {
    border-radius: 10px;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--bs-danger);
    border-left: 4px solid var(--bs-danger);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--bs-success);
    border-left: 4px solid var(--bs-success);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--bs-info);
    border-left: 4px solid var(--bs-info);
}

.invalid-feedback {
    font-size: 13px;
    margin-top: 6px;
    display: block;
    color: var(--bs-danger);
}

/* ─────── Info Messages (General Help Text) ─────── */
.form-text {
    font-size: 13px;
    color: var(--bs-muted);
    margin-top: 6px;
}

/* ─────── Responsive Adjustments ─────── */
@media (max-width: 576px) {
    .password-reset-container {
        padding: 20px;
    }

    #password-reset-card {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .password-reset-title {
        font-size: 24px;
    }

    .password-reset-subtitle {
        font-size: 14px;
    }

    .card-body {
        padding: 24px !important;
    }
}

/* ─────── Accessibility Focus States ─────── */
.form-control:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* ─────── Dark Mode Enhancements ─────── */
[data-bs-theme="dark"] .password-reset-container {
    background: linear-gradient(135deg,
            var(--surface-0) 0%,
            var(--surface-1) 50%,
            var(--surface-2) 100%);
}

[data-bs-theme="dark"] .password-reset-title {
    color: #F3F4F6;
}

[data-bs-theme="dark"] .password-reset-subtitle {
    color: var(--bs-muted);
}

[data-bs-theme="dark"] .form-label {
    color: #F3F4F6;
}

[data-bs-theme="dark"] .signin-prompt {
    color: var(--bs-muted);
}
