/* Acceso y registro, aislados de los módulos existentes. */
.sc-auth .auth-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); min-height: 100svh; }
.sc-auth .auth-story { position: sticky; top: 16px; min-width: 0; min-height: 600px; height: calc(100svh - 32px); display: flex; flex-direction: column; padding: 40px; margin: 16px 0 16px 16px; background: var(--public-forest); border-radius: 24px; color: #fff; isolation: isolate; overflow: hidden; }
.sc-auth .auth-story::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #083f35 5%, #083f35e8 48%, #083f3580); }
.sc-auth .auth-story-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; z-index: -2; }
.sc-auth .auth-story .public-brand { color: #fff; }
.sc-auth .auth-story-copy { margin-block: auto; padding-block: 60px; }
.sc-auth .auth-story .public-eyebrow { color: #d7e5cf; font-size: 10px; }
.sc-auth .auth-story h2 { font-size: clamp(30px, 3.3vw, 46px); font-weight: 800; line-height: 1.13; letter-spacing: -.05em; }
.sc-auth .auth-story h2 span { color: var(--public-yellow); }
.sc-auth .auth-story-copy > p:last-child { max-width: 340px; margin-top: 24px; font-size: 14px; line-height: 1.8; color: #e0eae2; }
.sc-auth .auth-story-footer { display: flex; align-items: center; gap: 14px; color: #edf2e8; font-size: 12px; }
.sc-auth .auth-story-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #ffffff50; border-radius: 50%; font-size: 26px; color: var(--public-yellow); }
.sc-auth .auth-pane { min-width: 0; display: flex; flex-direction: column; padding: 24px clamp(24px, 5vw, 84px); }
.sc-auth .auth-back { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: var(--public-muted); font-size: 13px; }
.sc-auth .auth-back:hover { color: var(--public-forest); text-decoration: underline; text-underline-offset: 4px; }
.sc-auth .auth-card { width: 100%; max-width: 460px; margin: auto; padding-block: 44px; }
.sc-auth .auth-card .public-eyebrow { font-size: 10px; margin-bottom: 10px; }
.sc-auth .auth-card h1 { color: var(--public-forest); font-size: 36px; font-weight: 800; }
.sc-auth .auth-description { color: var(--public-muted); margin: 12px 0 28px; font-size: 15px; }
.sc-auth form { display: grid; gap: 20px; }
.sc-auth .input-group { min-width: 0; }
.sc-auth .input-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.sc-auth .input-group input { width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid #b9c8bd; border-radius: 10px; background: #fff; color: var(--public-ink); font-size: 15px; transition: border-color .18s, box-shadow .18s; }
.sc-auth .input-group input::placeholder { color: #687b71; font-size: 14px; opacity: 1; }
.sc-auth .input-group input:focus-visible { border-color: var(--public-forest); outline: 3px solid #287a9f; outline-offset: 3px; }
.sc-auth .input-group input[aria-invalid="true"] { border-color: #a03131; background: #fffafa; }
.sc-auth .input-group input.is-valid { border-color: #397854; }
.sc-auth .auth-submit { width: fit-content; min-width: 180px; max-width: 100%; justify-self: center; justify-content: center; min-height: 44px; padding: 10px 20px; margin-top: 4px; }
.sc-auth .auth-switch { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--public-border); text-align: center; font-size: 14px; color: var(--public-muted); }
.sc-auth .auth-switch a { display: inline-block; padding-block: 8px; color: var(--public-forest); font-weight: 800; }
.sc-auth .auth-switch a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sc-auth .auth-note { display: flex; gap: 9px; justify-content: center; align-items: center; margin-top: 24px; font-size: 12px; color: var(--public-muted); }
.sc-auth .auth-note .public-icon { width: 19px; height: 19px; }
.sc-auth .auth-footer { align-self: center; text-align: center; font-size: 11px; color: var(--public-muted); padding-block: 16px; }
.sc-auth .auth-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sc-auth .auth-field-help { margin-top: 7px; color: var(--public-muted); font-size: 11px; }
.sc-auth .auth-role-group { min-width: 0; border: 0; padding: 0; margin: 0; }
.sc-auth .auth-role-group legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 13px; }
.sc-auth .radio-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sc-auth .role-card { position: relative; display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 16px 12px; border: 1px solid #b9c8bd; border-radius: 12px; background: #fff; cursor: pointer; transition: background .18s, border-color .18s; }
.sc-auth .role-card:has(:checked) { border-color: var(--public-forest); background: #eaf1e3; box-shadow: inset 0 0 0 1px var(--public-forest); }
.sc-auth .role-card:hover { border-color: var(--public-forest); }
.sc-auth .role-card input { flex-shrink: 0; width: 17px; height: 17px; accent-color: var(--public-forest); margin: 4px 0 0; }
.sc-auth .role-card strong { display: block; font-size: 14px; }
.sc-auth .role-card > span > span { display: block; font-size: 11px; color: var(--public-muted); margin-top: 4px; }
.sc-auth .error-mensaje { display: block; margin-top: 7px; font-size: 12px; line-height: 1.5; color: #a03131; }
.sc-auth .mensaje-formulario { margin-bottom: 22px; padding: 12px 14px; border: 1px solid #efcbc5; border-radius: 10px; font-size: 14px; background: #fff0ed; color: #a03131; }
.sc-auth .mensaje-exito { background: #eaf3e6; border-color: #c6d9bc; color: #285a38; }
.sc-auth-register .auth-card { max-width: 520px; padding-block: 20px; }
.sc-auth-register .auth-description { margin-bottom: 22px; }
.sc-auth-register form { gap: 18px; }
.sc-auth-register .auth-switch { margin-top: 18px; padding-top: 14px; }
@media (max-width: 1050px) {
    .sc-auth .auth-story { padding: 30px; }
    .sc-auth .auth-pane { padding-inline: 28px; }
    .sc-auth .auth-story h2 { font-size: 34px; }
    .sc-auth .auth-field-pair { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 700px) {
    .sc-auth .auth-layout { grid-template-columns: 1fr; }
    .sc-auth .auth-story { position: relative; top: auto; min-height: 0; height: auto; margin: 0; border-radius: 0; padding: 18px; background: var(--public-header); }
    .sc-auth .auth-story::after, .sc-auth .auth-story-copy, .sc-auth .auth-story-photo, .sc-auth .auth-story-footer { display: none; }
    .sc-auth .auth-pane { padding: 12px 22px 16px; min-height: calc(100svh - 74px); }
    .sc-auth .auth-back { font-size: 12px; }
    .sc-auth .auth-card, .sc-auth-register .auth-card { padding-block: 24px 32px; }
    .sc-auth .auth-card h1 { font-size: 32px; }
    .sc-auth .input-group input { font-size: 16px; }
    .sc-auth .auth-description { font-size: 14px; }
    .sc-auth .auth-field-pair { grid-template-columns: 1fr; }
    .sc-auth .role-card { padding: 14px 10px; gap: 8px; }
    .sc-auth .auth-note { align-items: flex-start; text-align: left; }
}

