﻿/* ─── Forgot-password page ─────────────────────────────────────── */

/* Reuse the full-background + bg-overlay pattern from Index */
.forgot-page-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.forgot-card {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Header */
.forgot-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.forgot-icon {
    font-size: 2.4rem;
    color: #d4af37;
}

.forgot-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #d4af37;
    letter-spacing: 0.5px;
    margin: 0;
}

.forgot-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* Status alert */
.forgot-alert {
    font-size: 0.875rem;
    border-radius: 8px;
}

/* Input field */
.forgot-field {
    display: flex;
    flex-direction: column;
}

/* Submit button — full width */
.forgot-btn {
    width: 100%;
    justify-content: center;
}

/* Back link */
.forgot-footer {
    text-align: center;
    font-size: 0.85rem;
}

/* ── ForgotPassword — page-specific overrides only.
   All shared styles (cards, inputs, buttons, background) come from Index.css ── */

/* Single centred column — override the default two-column grid */
.forgot-grid {
    grid-template-columns: minmax(0, 480px);
    justify-content: center;
}

/* Make the background immediately visible — no JS .visible trigger on this page */
.full-background {
    opacity: 1 !important;
}

.bg-overlay {
    opacity: 1 !important;
}

/* ── Password strength bar ── */
.pw-strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.pw-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.pw-strength-weak   { background-color: #e74c3c; }
.pw-strength-fair   { background-color: #e67e22; }
.pw-strength-good   { background-color: #f1c40f; }
.pw-strength-strong { background-color: #2ecc71; }

/* ── Password rule checklist ── */
.pw-rules {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pw-rules li {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    padding-left: 1.2em;
    position: relative;
    transition: color 0.2s ease;
}

.pw-rules li::before {
    content: '○';
    position: absolute;
    left: 0;
    transition: content 0.2s ease, color 0.2s ease;
}

.pw-rules li.pw-rule-ok {
    color: #2ecc71;
}

.pw-rules li.pw-rule-ok::before {
    content: '✓';
}

.pw-rules li.pw-rule-fail {
    color: #e74c3c;
}

.pw-rules li.pw-rule-fail::before {
    content: '✗';
}

/* ── Confirm password match message ── */
.pw-match-msg {
    font-size: 0.78rem;
    margin-top: 4px;
    min-height: 1em;
    transition: color 0.2s ease;
}

.pw-match-ok   { color: #2ecc71; }
.pw-match-fail { color: #e74c3c; }