/* ==========================================================================
   Layout Containers
   ========================================================================== */

html {
    font-size: 100%;
}

.container-wrap {
    width: 80%;
    margin: 0 auto;
    max-width: 900px;
}

@media (max-width: 600px) {
    .container-wrap {
        width: 98%;
        padding: 0 1%;
        max-width: 100%;
    }
}

/* Spacing between sections */
.container-inner {
    margin-bottom: 2.5rem;
}

/* Background block with padding, border-radius and text color */
.container-bg {
    box-shadow: 0 0 #00000070;
    padding: 2rem;
    border-radius: 2rem;
    border-color: inherit;
    color: #002554;
}

@media (max-width: 600px) {
    .container-bg {
        padding: 1rem;
        border-radius: 1rem;
    }
}

/* Flex utility for inner content */
.container-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding: 0 1.25rem;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .container-bg {
        flex-direction: column;
        gap: 0.6rem;
    }

    .container-left,
    .container-right {
        width: 100%;
    }

    .container-right {
        display: none;
    }
}

/* ==========================================================================
     Flex Children
     ========================================================================== */
.container-left {
    flex: 4;
    min-width: 0;
}

.container-right {
    flex: 2;
    min-width: 0;
}

.container-center {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.container-right img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ==========================================================================
     Background Variants
     ========================================================================== */
.bg-light {
    background-color: #e2fbf8;
}

.bg-dark {
    background-color: #f6f9f9;
}

/* ==========================================================================
     Typography (Responsive + WCAG AAA)
     ========================================================================== */
h1.heading,
h2.heading,
h3.heading,
h4.heading,
h5.heading,
h6.heading {
    outline: none;
    font-weight: 700;
    color: #002554;
}

h2.heading {
    font-size: 2rem;
    line-height: 1.2;
}

h3.heading {
    font-size: 1.5rem;
    line-height: 1.25;
}

h4.heading {
    font-size: 1.25rem;
    line-height: 1.25;
}

.heading-text {
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #002554;
}

@media (max-width: 600px) {
    h2.heading {
        font-size: 1.3rem;
    }

    h3.heading {
        font-size: 1.1rem;
    }

    h4.heading {
        font-size: 1rem;
    }

    .heading-text {
        font-size: 1rem;
    }
}

#re-send-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #e2fbf8;
    color: #002554;
    font-size: 1.1rem;
    text-align: center;
}

/* ==========================================================================
     Buttons
     ========================================================================== */
.button,
.button:visited {
    display: inline-block;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border-radius: 24px;
    padding: 12px 24px 10px 24px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    outline: none;
    box-shadow: 0px 0px 0 #00000026;
}

.button:focus {
    border-color: #333;
    outline-offset: 2px !important;
}

.button[role="button"] {
    cursor: pointer;
}

.button:disabled,
.button[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================
   Button Variants
   ============================ */

.button-primary,
.button-primary:visited {
    background: #002554;
    color: #FFF;
    padding: 13px 50px 9px 20px;
}

.button-primary:hover,
.button-primary:focus {
    background: #011B40;
    color: #FFF;
    outline-color: #22bfb8 !important;
    /* box-shadow: 0 4px 16px rgba(0, 37, 84, 0.13); */
}

.button-primary:active {
    background: #011333;
    color: #FFF;
}

/* ------------ */

.button-secondary,
.button-secondary:visited {
    background: #2AD2C9;
    color: #002554;
}

.button-secondary:hover,
.button-secondary:focus {
    background: #22bfb8;
    color: #002554;
    outline-color: #002554 !important;
    /* box-shadow: 0 4px 16px rgba(42, 210, 201, 0.15); */
}

.button-secondary:active {
    background: #1da99d;
    color: #fff;
}

.button-newsletter {
    text-align: center;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #002554;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .button-newsletter {
        font-size: 1rem;
    }
}

/* ==========================================================================
     Alerts (Contraste AAA)
     ========================================================================== */

.alert-custom {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: inline-block;
}

.alert-error {
    background-color: #fff4f4;
    border: 1.5px solid #d32f2f;
    color: #a10000;
    /* Aún más contraste */
}

.alert-success {
    background-color: #e6f9f8;
    border: 1.5px solid #1f756f;
    color: #003d3b;
}

/* ==========================================================================
     Password Requirements List
     ========================================================================== */

#password-requirements {
    margin: 1em 0 1em 1.5em;
}

#password-requirements .requirement-item {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.4em;
}

#password-requirements span.rule-icon {
    line-height: 0.9;
}

#password-requirements .rule-icon svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
     Password Reset Form
     ========================================================================== */

#password-reset-form button[id="submit_button"] {
    margin-top: 1.5em;
    border: 1.5px solid #002554;
    border-radius: 4px;
    color: #002554;
    font: normal normal 700 1.125rem/1.5rem Nexa, Arial, sans-serif;
    padding: 0.7rem;
    width: 100%;
}

#password-reset-form .form-group-2 {
    margin-top: 1em;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
}

.password-wrapper .toggle-password,
.password-wrapper .toggle-password:hover,
.password-wrapper .toggle-password:active,
.password-wrapper .toggle-password:focus {
    position: absolute;
    height: 100%;
    right: 0;
    background: #5edfd8;
    border-radius: 0 4px 4px 0;
    border: 1.5px solid #002554 !important;
    outline: none;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none !important;
}

.password-wrapper .toggle-password svg.eye-icon {
    width: 20px;
    height: 20px;
}