.forgot-password-page {
    padding: 48px 20px 72px;
}

.forgot-password-shell {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.forgot-password-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
    overflow: hidden;
}

.forgot-password-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #111827 0%, #374151 100%);
}

.forgot-password-card-inner {
    padding: 36px;
}

.forgot-password-heading {
    margin-bottom: 26px;
}

.forgot-password-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.forgot-password-heading h1 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    color: #111827;
}

.forgot-password-subtext {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #6b7280;
    max-width: 460px;
}

.forgot-password-form {
    display: block;
}

.forgot-password-section {
    margin: 0;
    padding: 0;
    border: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.form-group input {
    width: 100%;
    min-height: 50px;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:hover {
    border-color: #9ca3af;
}

.form-group input:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.field-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #6b7280;
}

.forgot-password-actions {
    margin-top: 24px;
}

.forgot-password-submit.btn.primary,
.forgot-password-actions .btn.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 14px 18px;
    border: 0;
    border-radius: 12px;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
    box-sizing: border-box;
}

.forgot-password-submit.btn.primary:hover,
.forgot-password-actions .btn.primary:hover {
    background: #000000;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.16);
    transform: translateY(-1px);
}

.forgot-password-submit.btn.primary:active,
.forgot-password-actions .btn.primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.form-errors,
.form-success {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.55;
}

.form-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.form-errors p {
    margin: 0;
    color: #b91c1c;
}

.form-errors p + p {
    margin-top: 6px;
}

.form-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.form-success p {
    margin: 0;
    color: #065f46;
}

.forgot-password-divider {
    position: relative;
    margin: 26px 0 22px;
    text-align: center;
}

.forgot-password-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #e5e7eb;
    transform: translateY(-50%);
}

.forgot-password-divider span {
    position: relative;
    display: inline-block;
    padding: 0 12px;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: lowercase;
}

.forgot-password-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.forgot-password-footer-text {
    margin: 0;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.forgot-password-secondary-btn.btn.secondary,
.forgot-password-footer .btn.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 13px 18px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
    box-sizing: border-box;
}

.forgot-password-secondary-btn.btn.secondary:hover,
.forgot-password-footer .btn.secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .forgot-password-page {
        padding: 24px 12px 48px;
    }

    .forgot-password-shell {
        max-width: 100%;
    }

    .forgot-password-card {
        border-radius: 16px;
    }

    .forgot-password-card-inner {
        padding: 22px 18px;
    }

    .forgot-password-heading {
        margin-bottom: 22px;
    }

    .forgot-password-heading h1 {
        font-size: 24px;
    }

    .forgot-password-subtext {
        font-size: 14px;
    }

    .form-group input {
        min-height: 48px;
        padding: 13px 14px;
        font-size: 16px;
    }

    .forgot-password-submit.btn.primary,
    .forgot-password-actions .btn.primary,
    .forgot-password-secondary-btn.btn.secondary,
    .forgot-password-footer .btn.secondary {
        min-height: 48px;
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .forgot-password-card-inner {
        padding: 40px;
    }
}