/* ============================================================
   EDUkalEDAD – Forgot Password Page Styles
   Matches admin_style.css login card design exactly.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --blue:    #27559e;
    --blue-d:  #123466;
    --blue-l:  #3a75d5;
    --gold:    #dda941;
    --gold-l:  #f5cf74;
    --bg:      #f0f4f9;
    --card:    #ffffff;
    --muted:   #64748b;
    --border:  #e2e8f0;
    --danger:  #dc2626;
    --success: #16a34a;
    --warn:    #d97706;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--blue-d) 0%, var(--blue) 60%, #1e40af 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #1e293b;
}

/* ── Page wrapper ─────────────────────────────────────── */
.fp-card {
    background: #fff;
    border-radius: 24px;
    padding: 48px 44px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.35s ease;
}

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

/* ── Logo header (same as login.html) ───────────────── */
.fp-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.fp-logo img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.fp-logo-text {
    text-align: center;
    flex: 1;
    padding: 0 10px;
}

.fp-logo-text .title {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue-d);
    line-height: 1.1;
}

.fp-logo-text .sub {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

/* ── Step heading ────────────────────────────────────── */
.fp-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--blue-d);
    margin-bottom: 6px;
}

.fp-card p.fp-desc {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ── Progress steps indicator ────────────────────────── */
.fp-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
}

.fp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 6px;
}

.fp-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    border: 2.5px solid var(--border);
    background: #f8fafc;
    color: var(--muted);
    transition: all 0.3s;
}

.fp-step-dot.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(39, 85, 158, 0.15);
}

.fp-step-dot.done {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.fp-step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    white-space: nowrap;
}

.fp-step-label.active {
    color: var(--blue-d);
    font-weight: 700;
}

.fp-step-line {
    flex: 1;
    height: 2.5px;
    background: var(--border);
    margin-bottom: 20px;
    transition: background 0.3s;
    max-width: 60px;
}

.fp-step-line.done {
    background: var(--success);
}

/* ── Form fields ─────────────────────────────────────── */
.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}

.field input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
    color: #1e293b;
}

.field input:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(39, 85, 158, 0.1);
}

/* Password wrapper with toggle icon */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 48px;
}

.password-wrapper .pw-toggle {
    position: absolute;
    right: 14px;
    width: 22px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    user-select: none;
}

.password-wrapper .pw-toggle:hover { opacity: 1; }

/* Suppress browser's built-in eye icon */
input::-ms-reveal,
input::-ms-clear { display: none; }

/* ── Password strength bar ───────────────────────────── */
.pw-strength-wrap {
    display: none;
    margin-top: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.pw-bar-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.pw-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: all 0.3s;
}

.pw-strength-label {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.pw-reqs {
    list-style: none;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.9;
}

/* ── Submit button ───────────────────────────────────── */
.fp-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--blue-l), var(--blue));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    margin-top: 4px;
}

.fp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 85, 158, 0.35);
}

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

/* ── Alert boxes ─────────────────────────────────────── */
.fp-alert {
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
    display: none;
    line-height: 1.5;
}

.fp-alert.error   { background: #fee2e2; color: var(--danger); }
.fp-alert.success { background: #dcfce7; color: var(--success); }
.fp-alert.warn    { background: #fef3c7; color: var(--warn); }

/* ── Back / secondary links ──────────────────────────── */
.fp-back-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--muted);
}

.fp-back-link a {
    color: var(--blue);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.fp-back-link a:hover { text-decoration: underline; }

/* ── Divider ─────────────────────────────────────────── */
hr.fp-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 22px 0;
}

/* ── Success state illustration ──────────────────────── */
.fp-success-icon {
    font-size: 56px;
    margin-bottom: 16px;
    text-align: center;
}

/* ── Toast ───────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: none;
    z-index: 9999;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
    .fp-card {
        padding: 36px 24px;
    }
    .fp-logo-text .title { font-size: 18px; }
    .fp-logo img { width: 44px; height: 44px; }
}
