@import url(../base/common.css);
@import url(../base/form.css);

/* ── Layout ──────────────────────────────────────────────────────── */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Card ────────────────────────────────────────────────────────── */

.forgot-password-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    padding: 3rem;
    border-radius: var(--radius-xxl);
    border: var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 0.8s;
}

.icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--shadow-primary);
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }

.card-header p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* ── Btn disabled state ──────────────────────────────────────────── */

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Divider ─────────────────────────────────────────────────────── */

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--overlay-xl);
}

.divider::before { left: 0; }
.divider::after  { right: 0; }

.divider span {
    background: var(--overlay-sm);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ── Login link ──────────────────────────────────────────────────── */

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--overlay-md);
    color: var(--color-text-muted);
}

.login-link a {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

/* ── Success state ───────────────────────────────────────────────── */

.success-message { display: none; text-align: center; }
.success-message.active { display: block; }

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 8px 32px color-mix(in srgb, var(--hue-success) 40%, transparent);
    animation: successPop 0.5s;
}

@keyframes successPop {
    0%   { transform: scale(0); }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-message h2 { font-size: 1.8rem; margin-bottom: 1rem; }

.success-message p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ── Info box ────────────────────────────────────────────────────── */

.info-box {
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-box-icon { font-size: 1.5rem; flex-shrink: 0; }

.info-box-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* ── Inline error ────────────────────────────────────────────────── */

/* Shared with the reset page (reset-password.css imports this file). Both forms need a
   place to say "that didn't work" without a page reload, and there is no point in two
   slightly different red boxes. */
.error-message {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md, 8px);
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #ff8b96;
    font-size: 0.9rem;
    line-height: 1.5;
}
