/* Control estructural comun. Los temas solo aportan variables de color. */
.storefront-shell .storefront-content > .store-auth-shell {
    width: 520px !important;
    max-width: calc(100% - 32px) !important;
    margin: 64px auto 88px !important;
    padding: 30px !important;
    box-sizing: border-box !important;
    border: 1px solid var(--store-auth-border, #cfdbe5) !important;
    border-radius: 10px !important;
    background: var(--store-auth-surface, #fff) !important;
    box-shadow: 0 16px 34px rgba(17, 45, 68, .08) !important;
}

.storefront-shell .storefront-content > .store-auth-register {
    width: 680px !important;
    max-width: calc(100% - 32px) !important;
}

.storefront-shell .storefront-content > .store-auth-shell > h1 {
    margin: 0 0 26px !important;
    color: var(--store-auth-text, #17212b) !important;
    font-size: clamp(1.65rem, 3vw, 2rem) !important;
    line-height: 1.15 !important;
    text-align: center !important;
}

.storefront-shell .storefront-content > .store-auth-shell .store-auth-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.storefront-shell .storefront-content > .store-auth-shell .store-auth-form > label {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    color: var(--store-auth-text, #17212b) !important;
    font-weight: 700 !important;
    text-align: left !important;
}

.storefront-shell .storefront-content > .store-auth-shell .store-auth-form input:not([type="checkbox"]):not([type="radio"]),
.storefront-shell .storefront-content > .store-auth-shell .store-auth-form select,
.storefront-shell .storefront-content > .store-auth-shell .store-auth-form textarea {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    padding: 11px 14px !important;
    border: 1px solid var(--store-auth-input-border, #bdccd9) !important;
    border-radius: 7px !important;
    background: var(--store-auth-input-surface, #fff) !important;
    color: var(--store-auth-text, #17212b) !important;
    box-shadow: none !important;
}

.storefront-shell .storefront-content > .store-auth-shell .store-checkout-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 4px 0 0 !important;
}

.storefront-shell .storefront-content > .store-auth-shell .store-action-primary,
.storefront-shell .storefront-content > .store-auth-shell .store-action-secondary {
    display: inline-flex !important;
    width: 100% !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border: 1px solid var(--store-auth-accent, #1554e8) !important;
    border-radius: 7px !important;
    background: var(--store-auth-accent, #1554e8) !important;
    color: #fff !important;
    font-weight: 800 !important;
}

/* En recuperación/registro el CTA conserva su ancho compacto, pero queda
   centrado dentro de la columna del formulario. */
.storefront-shell .storefront-content > .store-auth-shell .store-checkout-actions > .store-action-primary,
.storefront-shell .storefront-content > .store-auth-shell .store-checkout-actions > .store-action-secondary {
    justify-self: center !important;
}

.storefront-shell .storefront-content > .store-auth-shell .store-action-link,
.storefront-shell .storefront-content > .store-auth-shell .store-register-login-link,
.storefront-shell .storefront-content > .store-auth-shell .store-password-reset-request-link {
    justify-self: center !important;
    color: var(--store-auth-accent, #1554e8) !important;
    font-weight: 700 !important;
    text-align: center !important;
}

@media (max-width: 640px) {
    .storefront-shell .storefront-content > .store-auth-shell,
    .storefront-shell .storefront-content > .store-auth-register {
        width: calc(100% - 24px) !important;
        max-width: none !important;
    }
}
