/* =========================================
   RESET PASSWORD PAGE
   ========================================= */

.reset-password-page {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 16px 56px;
    color: #121212;
}

.reset-password-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reset-password-page h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: #121212;
}

.reset-password-intro {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.75;
    color: #6f675d;
}

/* =========================================
   FORM SHELL
   ========================================= */

#reset-password-form,
#reset-password-verify-form,
#reset-password-confirm-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
    background: #ffffff;
    border: 1px solid #ece7df;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(18, 18, 18, 0.06);
}

/* =========================================
   FEEDBACK
   ========================================= */

.auth-error,
.auth-success {
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.auth-error {
    border: 1px solid #f1b7b7;
    background: #fff3f3;
    color: #b42318;
}

.auth-error-empty {
    display: none;
}

.auth-success {
    border: 1px solid #b7e4c7;
    background: #f2fff6;
    color: #166534;
}

/* =========================================
   FIELDS
   ========================================= */

.input-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section-input {
    position: relative;
    width: 100%;
}

.section-input input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid #ddd6cb;
    border-radius: 16px;
    background: #fff;
    color: #121212;
    font-size: 15px;
    line-height: 1.2;
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.section-input input::placeholder {
    color: #8a8175;
}

.section-input input:hover {
    border-color: #cfc5b7;
}

.section-input input:focus {
    border-color: #121212;
    box-shadow: 0 0 0 4px rgba(18, 18, 18, 0.08);
    background: #fff;
}

.section-input input:-webkit-autofill,
.section-input input:-webkit-autofill:hover,
.section-input input:-webkit-autofill:focus {
    -webkit-text-fill-color: #121212;
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 9999s ease-out 0s;
}

/* =========================================
   BUTTON
   ========================================= */

.submit-button {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 999px;
    background: #121212;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
    box-shadow: 0 14px 30px rgba(18, 18, 18, 0.14);
}

.submit-button:hover {
    transform: translateY(-1px);
    background: #1e1e1e;
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(18, 18, 18, 0.10),
        0 14px 30px rgba(18, 18, 18, 0.14);
}

/* =========================================
   LINKS
   ========================================= */

.reset-password-actions {
    margin: 4px 0 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: #6f675d;
}

.reset-password-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #121212;
    text-decoration: none;
    border-bottom: 1px solid rgba(18, 18, 18, 0.22);
    transition:
        border-color 0.18s ease,
        color 0.18s ease,
        opacity 0.18s ease;
}

.reset-password-actions a:hover {
    border-color: #121212;
    opacity: 0.78;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (min-width: 640px) {
    .reset-password-page {
        padding: 52px 20px 72px;
    }

    #reset-password-form,
    #reset-password-verify-form,
    #reset-password-confirm-form {
        padding: 30px 28px;
        border-radius: 28px;
    }
}

@media (max-width: 480px) {
    .reset-password-page {
        padding: 28px 12px 44px;
    }

    #reset-password-form,
    #reset-password-verify-form,
    #reset-password-confirm-form {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .section-input input {
        min-height: 52px;
        padding: 0 16px;
        border-radius: 14px;
    }
}