/* ============================================================
   FORGOT PASSWORD & RESET PASSWORD STYLES
   Also contains Remember Me checkbox styles for auth.php
   ============================================================ */

/* ─── Shared card wrapper ─── */
.fp-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    padding: 48px 44px;
    max-width: 480px;
    margin: 0 auto 40px;
    text-align: center;
}

/* ─── Icon header ─── */
.fp-icon-wrap {
    margin-bottom: 22px;
}

.fp-icon {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #1A4D7F;
    box-shadow: 0 8px 20px rgba(26, 77, 127, 0.15);
}

.fp-icon-green {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.15);
}

/* ─── Typography ─── */
.fp-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}

.fp-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Alert banners ─── */
.fp-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    text-align: left;
    margin-bottom: 22px;
    line-height: 1.6;
    animation: fpAlertSlide 0.3s ease;
}

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

.fp-alert i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.fp-alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.fp-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ─── Form fields ─── */
.fp-form-group {
    text-align: left;
    margin-bottom: 20px;
}

.fp-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

.fp-input-wrap {
    position: relative;
}

.fp-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
    pointer-events: none;
}

.fp-input {
    width: 100%;
    padding: 13px 44px 13px 42px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #fafafa;
    box-sizing: border-box;
    transition: all 0.3s;
}

.fp-input:focus {
    outline: none;
    border-color: #2c7a94;
    background: white;
    box-shadow: 0 0 0 4px rgba(44, 122, 148, 0.1);
}

.fp-pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    font-size: 15px;
    transition: color 0.2s;
}

.fp-pw-toggle:hover {
    color: #2c7a94;
}

/* ─── Password strength bar ─── */
.fp-strength-bar {
    height: 5px;
    background: #e8e8e8;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.fp-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.35s ease, background 0.35s ease;
}

.fp-strength-label {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    min-height: 16px;
    text-align: right;
    transition: color 0.3s;
}

/* ─── Password match indicator ─── */
.fp-match-msg {
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
    min-height: 16px;
}

.fp-match-ok  { color: #16a34a; }
.fp-match-err { color: #ef4444; }

/* ─── Submit button ─── */
.fp-btn {
    width: 100%;
    padding: 14px 20px;
    margin-top: 6px;
    background: linear-gradient(135deg, #2c7a94 0%, #2c5f7f 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

.fp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(44, 122, 148, 0.35);
}

.fp-btn:active {
    transform: translateY(0);
}

.fp-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fp-btn-text,
.fp-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ─── Bottom link ─── */
.fp-footer {
    margin-top: 24px;
    font-size: 14px;
    color: #888;
}

.fp-footer a {
    color: #2c7a94;
    font-weight: 500;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s;
}

.fp-footer a:hover {
    color: #1a5a6e;
    text-decoration: underline;
}

/* ============================================================
   REMEMBER ME CHECKBOX  (used in auth.php login form)
   ============================================================ */
.remember-me-row {
    margin-bottom: 4px;
    margin-top: -2px;
    text-align: left;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

/* Hide native checkbox */
.remember-label input[type="checkbox"] {
    display: none;
}

/* Custom checkbox box */
.remember-custom-checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

/* Checked state */
.remember-label input:checked + .remember-custom-checkbox {
    background: linear-gradient(135deg, #2c7a94, #2c5f7f);
    border-color: #2c7a94;
}

/* Checkmark tick */
.remember-label input:checked + .remember-custom-checkbox::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

.remember-text {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* ─── Responsive ─── */
@media (max-width: 520px) {
    .fp-card {
        padding: 36px 24px;
        border-radius: 18px;
    }

    .fp-title {
        font-size: 22px;
    }

    .fp-icon {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }
}

/* ─── Dark mode ─── */
[data-theme="dark"] .fp-card {
    background: var(--bg-card);
    border-color: var(--border-light);
}

[data-theme="dark"] .fp-title {
    color: var(--text-primary);
}

[data-theme="dark"] .fp-subtitle {
    color: var(--text-muted);
}

[data-theme="dark"] .fp-form-group label {
    color: var(--text-secondary);
}

[data-theme="dark"] .fp-input {
    background: var(--bg-input);
    color: var(--text-secondary);
    border-color: var(--border-input);
}

[data-theme="dark"] .fp-input:focus {
    background: var(--bg-card-alt);
    border-color: #73C2E8;
    box-shadow: 0 0 0 4px rgba(115, 194, 232, 0.12);
}

[data-theme="dark"] .fp-icon {
    background: rgba(25, 118, 210, 0.15);
    color: #64b5f6;
}

[data-theme="dark"] .fp-icon-green {
    background: rgba(46, 125, 50, 0.15);
    color: #81c784;
}

[data-theme="dark"] .fp-strength-bar {
    background: var(--bg-card-alt);
}

[data-theme="dark"] .fp-footer {
    color: var(--text-muted);
}

[data-theme="dark"] .fp-footer a {
    color: var(--brand-accent);
}

[data-theme="dark"] .remember-text {
    color: var(--text-muted);
}

[data-theme="dark"] .remember-custom-checkbox {
    background: var(--bg-input);
    border-color: var(--border-input);
}