/**
 * Panel login/registro reutilizable (.login-form / .login-form--register).
 * Usado en /usuario/registro, /login y carrito (#form-login-carro).
 * Contenedor visual: .cart-calculation-area (borde/radius/padding en main.css).
 * Checkboxes: contrato .fourth-section (form-publico / login-register).
 */

.login-form,
.login-form--register {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.login-form .section-title--login,
.login-form .section-title--login h2,
.login-form .section-title--login p,
.login-form .reset-pass-link,
.login-form .remember-text,
.login-form--register .section-title--login,
.login-form--register .section-title--login h2,
.login-form--register .section-title--login p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.login-form form input[type=email],
.login-form form input[type=password],
.login-form form input[type=text],
.login-form--register form input[type=email],
.login-form--register form input[type=password],
.login-form--register form input[type=text] {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.login-form .js-login-submit,
.login-form button[type=submit],
.login-form--register button[type=submit] {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Checkboxes Recuérdame / términos */
.login-form .fourth-section label,
.login-form .fourth-section .form-check-label,
.login-form .fourth-section .remember-text,
.login-form--register .fourth-section label,
.login-form--register .fourth-section .form-check-label {
    font: normal normal 400 16px/1.4 'Work Sans', sans-serif;
    letter-spacing: 0;
    color: #000000;
    text-transform: none;
    overflow-wrap: anywhere;
    max-width: 100%;
    margin-bottom: 0;
}

.login-form .fourth-section a:hover,
.login-form--register .fourth-section a:hover {
    color: #000000;
}

.login-form .fourth-section > div,
.login-form--register .fourth-section > div {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.login-form .fourth-section > div > input[type="checkbox"],
.login-form--register .fourth-section > div > input[type="checkbox"] {
    flex-shrink: 0;
    margin-right: 19px;
    width: 19px;
    height: 19px;
    min-width: 19px;
    min-height: 19px;
    border-radius: 0;
    border: 3px solid #CECECE;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    cursor: pointer;
}

.login-form .fourth-section > div > input[type="checkbox"]:checked,
.login-form--register .fourth-section > div > input[type="checkbox"]:checked {
    background-color: #000000;
}

/* Recuérdame + enlaces apilados (registro y carrito) */
.login-form .fourth-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* gap: 12px; */
    width: 100%;
}

.login-form .fourth-section > .reset-pass-link {
    display: block;
    max-width: 100%;
}

@media (max-width: 991.98px) {
    .login-form.cart-calculation-area,
    .login-form--register.cart-calculation-area {
        padding: 24px 16px;
    }

    .login-form .js-login-submit,
    .login-form button[type=submit],
    .login-form--register button[type=submit] {
        letter-spacing: 1.5px !important;
        padding: 12px 16px !important;
    }

    /* .login-form .fourth-section > div > input[type="checkbox"],
    .login-form--register .fourth-section > div > input[type="checkbox"] {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
    } */
}
