
/* FindMate Forgot / Reset Password
   Uses the existing login.css and verify-email.css design language. */

.forgot-section {
    max-width: 520px;
    margin: 0 auto;
}

.forgot-section .verify-icon-wrap {
    margin-bottom: 18px;
}

.forgot-section .login-button {
    width: 100%;
}

.forgot-section .back-register-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: #15803d;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.forgot-section .back-register-link:hover {
    color: #166534;
    text-decoration: none;
}

.forgot-section .back-register-link:focus,
.forgot-section .back-register-link:active,
.forgot-section .back-register-link:visited {
    text-decoration: none;
}

.forgot-section .back-register-link i {
    font-size: 15px;
    transition: transform 0.2s ease;
}

.forgot-section .back-register-link:hover i {
    transform: translateX(-3px);
}

.forgot-section .password-helper {
    margin-top: 7px;
    color: #6b7280;
    font-size: 12px;
}

@media (max-width: 650px) {
    .forgot-section {
        width: 100%;
    }
}


/* =========================================================
   RESET PASSWORD PAGE
   Prevent the form from touching/cutting into the borders.
   ========================================================= */

.verify-section {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 42px 48px;
    box-sizing: border-box;
}

.verify-section .verify-icon-wrap {
    margin-bottom: 16px;
}

.verify-section .verify-header {
    margin-bottom: 24px;
}

.verify-section .verify-header h2 {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 9px;
}

.verify-section .verify-header p {
    line-height: 1.55;
    margin-bottom: 0;
    word-break: break-word;
}

.verify-section form {
    width: 100%;
    margin: 0;
}

.verify-section .form-group {
    width: 100%;
    margin-bottom: 17px;
}

.verify-section .form-group label {
    display: block;
    margin-bottom: 7px;
}

.verify-section .input-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.verify-section .input-wrapper input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.verify-section .login-button {
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
}

.verify-section .verify-resend-button {
    width: 100%;
    box-sizing: border-box;
}

.verify-section .password-helper {
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.verify-section .back-register-link {
    display: flex;
    width: fit-content;
    margin: 17px auto 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #15803d;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.verify-section .back-register-link:hover {
    color: #166534;
    text-decoration: none;
}

.verify-section .back-register-link i {
    transition: transform 0.2s ease;
}

.verify-section .back-register-link:hover i {
    transform: translateX(-3px);
}

.verify-section .alert {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 18px;
}

.verify-section .login-footer {
    margin-top: 28px;
}

@media (max-width: 650px) {
    .verify-section {
        max-width: 100%;
        padding: 32px 24px;
    }

    .verify-section .verify-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 400px) {
    .verify-section {
        padding: 28px 18px;
    }
}


/* Keep the reset page fully inside the rounded right panel. */
.login-column {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    scrollbar-width: none;
}

.login-column::-webkit-scrollbar {
    display: none;
}

.verify-section {
    padding-top: 26px;
    padding-bottom: 24px;
}

.verify-section .verify-icon-wrap {
    margin-bottom: 10px;
}

.verify-section .verify-header {
    margin-bottom: 16px;
}

.verify-section .verify-header h2 {
    font-size: 25px;
    line-height: 1.2;
    margin-bottom: 6px;
}

.verify-section .form-group {
    margin-bottom: 13px;
}

.verify-section .password-helper {
    margin-top: 4px;
}

.verify-section .login-button {
    margin-top: 1px;
}

.verify-section .login-footer {
    margin-top: 18px;
}

@media (max-width: 900px) {
    .login-column {
        overflow: visible;
    }

    .verify-section {
        padding-top: 30px;
        padding-bottom: 28px;
    }
}


/* =========================================================
   IMPORTANT: RESET PAGE HEIGHT FIX
   The base login.css uses a fixed-height wrapper. The reset
   form is taller than the normal login form, so the wrapper
   was clipping the top icon and the Start Over link.
   ========================================================= */

.login-wrapper:has(.verify-section) {
    height: auto !important;
    min-height: 704px;
    overflow: visible !important;
    align-items: stretch;
}

.login-wrapper:has(.verify-section) .login-column {
    height: auto !important;
    min-height: 704px;
    overflow: visible !important;
    display: flex;
    align-items: center;
}

.login-wrapper:has(.verify-section) .verify-section {
    height: auto;
    min-height: 0;
    overflow: visible;
}

@media (max-height: 800px) and (min-width: 901px) {
    .login-wrapper:has(.verify-section) {
        min-height: 0;
    }

    .login-wrapper:has(.verify-section) .login-column {
        min-height: 0;
    }

    .login-wrapper:has(.verify-section) .verify-section {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .login-wrapper:has(.verify-section) .verify-icon-wrap {
        margin-bottom: 6px;
    }

    .login-wrapper:has(.verify-section) .verify-header {
        margin-bottom: 12px;
    }

    .login-wrapper:has(.verify-section) .verify-header h2 {
        margin-bottom: 4px;
    }

    .login-wrapper:has(.verify-section) .form-group {
        margin-bottom: 10px;
    }

    .login-wrapper:has(.verify-section) .login-footer {
        margin-top: 12px;
    }

    .login-wrapper:has(.verify-section) .back-register-link {
        margin-top: 10px;
    }
}


/* =========================================================
   FINAL RESET-PASSWORD LAYOUT
   Keep the original two-column card intact. The reset form
   is simply made more compact so everything fits inside it.
   ========================================================= */

.login-wrapper:has(.verify-section) {
    height: 704px !important;
    min-height: 704px !important;
    overflow: hidden !important;
    align-items: stretch !important;
}

.login-wrapper:has(.verify-section) .branding-column {
    height: 100% !important;
    min-height: 0 !important;
}

.login-wrapper:has(.verify-section) .login-column {
    height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
    scrollbar-width: none;
}

.login-wrapper:has(.verify-section) .login-column::-webkit-scrollbar {
    display: none;
}

.login-wrapper:has(.verify-section) .verify-section {
    width: 380px !important;
    max-width: calc(100% - 80px) !important;
    margin: 0 auto !important;
    padding: 24px 0 18px !important;
    box-sizing: border-box;
}

.login-wrapper:has(.verify-section) .verify-icon-wrap {
    margin-bottom: 8px !important;
}

.login-wrapper:has(.verify-section) .verify-header {
    margin-bottom: 13px !important;
}

.login-wrapper:has(.verify-section) .verify-header h2 {
    font-size: 25px !important;
    line-height: 1.18 !important;
    margin-bottom: 5px !important;
}

.login-wrapper:has(.verify-section) .verify-header p {
    line-height: 1.35 !important;
}

.login-wrapper:has(.verify-section) .form-group {
    margin-bottom: 10px !important;
}

.login-wrapper:has(.verify-section) .form-group label {
    margin-bottom: 5px !important;
}

.login-wrapper:has(.verify-section) .input-wrapper input {
    height: 54px;
}

.login-wrapper:has(.verify-section) .password-helper {
    margin-top: 3px !important;
}

.login-wrapper:has(.verify-section) .login-button {
    margin-top: 1px !important;
    height: 58px;
}

.login-wrapper:has(.verify-section) form + form {
    margin-top: 7px !important;
}

.login-wrapper:has(.verify-section) .verify-resend-button {
    padding: 7px 0 !important;
}

.login-wrapper:has(.verify-section) .back-register-link {
    margin-top: 8px !important;
}

.login-wrapper:has(.verify-section) .login-footer {
    margin-top: 10px !important;
}

@media (max-height: 800px) and (min-width: 901px) {
    .login-wrapper:has(.verify-section) {
        height: 680px !important;
        min-height: 680px !important;
    }

    .login-wrapper:has(.verify-section) .verify-section {
        padding-top: 18px !important;
        padding-bottom: 12px !important;
    }
}
