/* forgot_modal.css — overlay + box for the "Forgot password" modal.
   Same .fm- prefix discipline as the other auth modals. */

.fm-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 10, 18, 0.9);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    z-index: 1500;
    padding: 20px;
}
.fm-overlay.active { opacity: 1; pointer-events: auto; }

.fm-box {
    background: var(--bg-secondary);
    border: 1px solid rgba(5,217,232,0.3);
    border-radius: 12px; padding: 30px;
    width: 100%; max-width: 440px;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: translateY(-20px); transition: transform 0.3s ease;
    position: relative;
    box-sizing: border-box;
}
.fm-overlay.active .fm-box { transform: translateY(0); }

.fm-close {
    position: absolute; top: 10px; right: 14px;
    background: transparent; border: none; padding: 0;
    font-size: 1.6rem; line-height: 1; cursor: pointer;
    color: var(--text-secondary);
}
.fm-close:hover { color: #ff4444; }

.fm-title {
    margin: 0 0 8px;
    font-family: var(--main-font);
    font-size: 1.5rem; font-weight: 700; line-height: 1.3;
    color: var(--text-light); text-align: center;
}
.fm-intro { color: var(--text-muted); text-align: center; font-size: 0.9rem; margin: 0 0 20px; }

/* Form fields */
.fm-box .form-group { margin-bottom: 18px; }
.fm-box label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.95rem; color: var(--text-secondary); }
.fm-box .form-control {
    display: block; width: 100%; padding: 10px 12px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: var(--text-primary); font-family: inherit; font-size: 0.95rem;
    box-sizing: border-box;
}
.fm-box .form-control:focus { outline: none; border-color: var(--neon-blue); box-shadow: 0 0 5px rgba(0,247,255,0.3); }
.fm-box .form-control:required:invalid { border-color: #ff4444; }
.fm-box .honeypot { display: none !important; }

/* Captcha */
.fm-box .captcha-group {
    display: flex; align-items: center; justify-content: space-between; gap: 15px;
    background: rgba(0,0,0,0.2);
    padding: 0 15px; border-radius: 6px; border: 1px dashed rgba(255,255,255,0.2);
    height: 48px; box-sizing: border-box;
}
.fm-box .captcha-text { font-weight: 800; font-size: 1.1rem; color: var(--accent-secondary); letter-spacing: 1px; }
.fm-box .captcha-calc {
    margin-left: auto; background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--accent-secondary); cursor: pointer;
    font: inherit; font-size: 1.1rem; font-weight: 800;
    padding: 4px 10px; border-radius: 4px; line-height: 1;
    transition: 0.15s;
}
.fm-box .captcha-calc:hover { border-color: var(--accent-secondary); background: rgba(5,217,232,0.1); }
.fm-box .captcha-input {
    width: 80px; text-align: center; font-size: 1.1rem; font-weight: 800;
    height: 36px; padding: 4px; box-sizing: border-box;
    -moz-appearance: textfield;
}
.fm-box .captcha-input::-webkit-inner-spin-button,
.fm-box .captcha-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.fm-errors,
.fm-success {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.5;
}
.fm-errors { background: rgba(255,68,68,0.08); border: 1px solid rgba(255,68,68,0.4); color: #ff8888; }
.fm-errors ul { margin: 0; padding-left: 18px; }
.fm-errors li { margin: 2px 0; }
.fm-success { background: rgba(0,255,128,0.06); border: 1px solid rgba(0,255,128,0.4); color: #b8ffd6; }
.fm-success strong { color: #00ff80; }
.fm-success-fine { color: #888; font-size: 0.8rem; }

.fm-submit { width: 100%; padding: 10px 16px; font-size: 1rem; cursor: pointer; border-radius: 4px; font-weight: 600; }
.fm-submit:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.fm-footer { margin-top: 20px; text-align: center; font-size: 0.9rem; color: var(--text-muted); }
.fm-footer a { color: var(--accent-secondary); text-decoration: none; font-weight: 600; }
.fm-footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .fm-overlay { padding: 12px; }
    .fm-box { padding: 20px; }
}
