/* Pantallas de acceso (login, recuperar y restablecer contraseña). Prefijo au-*. */
body.au-page { background: #fff; }
.au-page .wrapper-full-page, .au-page .full-page { min-height: 100vh; padding: 0; }
.au-page .full-page:after, .au-page .full-page:before { display: none !important; }
.au-page .full-page > .content { padding: 0 !important; margin: 0 !important; min-height: 100vh; }

.au-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; font-family: 'Titillium Web', 'Segoe UI', Roboto, sans-serif; color: #1f2937; }

/* Panel de marca */
.au-brand { position: relative; display: flex; flex-direction: column; padding: 48px 56px 32px; background: #f4f5f7 url('../img/fondo.png') center / cover no-repeat; }
.au-brand-logo { width: min(360px, 80%); height: auto; align-self: center; }
.au-points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
.au-points li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #111827; }
.au-points i { color: #c91219; font-size: 16px; }
.au-brand-foot { margin-top: auto; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.85); }
.au-brand-foot p { margin: 0; }

/* Panel del formulario */
.au-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; background: #fff; }
.au-card { width: 100%; max-width: 400px; }
.au-mobile-logo { display: none; width: 220px; max-width: 70%; margin: 0 auto 28px; }
.au-title { font-size: 28px; font-weight: 700; color: #111827; margin: 0; letter-spacing: -.01em; }
.au-title::after { content: ''; display: block; width: 44px; height: 4px; border-radius: 4px; background: #c91219; margin-top: 8px; }
.au-lead { margin: 18px 0 0; font-size: 14.5px; line-height: 1.5; color: #6b7280; }

.au-form { margin-top: 28px; }
.au-field { margin-bottom: 16px; }
.au-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; text-transform: none; }
.au-control { position: relative; }
.au-control > i.au-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 15px; pointer-events: none; transition: color .15s; }
.au-control input.au-input { width: 100%; height: 46px !important; padding: 0 44px 0 42px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; font-size: 15px; color: #111827; transition: border-color .15s, box-shadow .15s; }
.au-control input.au-input::placeholder { color: #9ca3af; }
.au-control input.au-input:hover { border-color: #9ca3af; }
.au-control input.au-input:focus { outline: none; border-color: #c91219; box-shadow: 0 0 0 3px rgba(201,18,25,.14); }
.au-control:focus-within > i.au-ico { color: #c91219; }
.au-control input.au-input.is-invalid { border-color: #dc2626; background-image: none; }
.au-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #6b7280; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.au-toggle:hover { background: #f3f4f6; color: #111827; }
.au-toggle:focus-visible { outline: 2px solid #c91219; outline-offset: 1px; }
.au-error { display: block; margin-top: 6px; font-size: 12.5px; color: #b91c1c; }

.au-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 20px; flex-wrap: wrap; }
.au-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: #374151; cursor: pointer; user-select: none; text-transform: none; }
.au-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.au-check .au-box { width: 18px; height: 18px; border: 1.5px solid #9ca3af; border-radius: 5px; background: #fff; display: inline-flex; align-items: center; justify-content: center; transition: all .15s; }
.au-check .au-box::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px,-1px) scale(0); transition: transform .12s; }
.au-check input:checked + .au-box { background: #c91219; border-color: #c91219; }
.au-check input:checked + .au-box::after { transform: rotate(-45deg) translate(1px,-1px) scale(1); }
.au-check input:focus-visible + .au-box { box-shadow: 0 0 0 3px rgba(201,18,25,.2); }
.au-link { color: #c91219; font-size: 14px; font-weight: 600; text-decoration: none; }
.au-link:hover { color: #9f0e14; text-decoration: underline; }
.au-link:focus { color: #9f0e14; }

.au-submit { width: 100%; height: 46px; border: 0; border-radius: 10px; background: #c91219; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .01em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 2px 6px rgba(201,18,25,.28); transition: background .15s, box-shadow .15s, transform .05s; }
.au-submit:hover { background: #b10f15; box-shadow: 0 4px 12px rgba(201,18,25,.32); }
.au-submit:active { transform: translateY(1px); }
.au-submit:focus, .au-submit:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(201,18,25,.25); color: #fff; }
.au-submit[disabled] { opacity: .75; cursor: progress; }
.au-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; }

.au-notice { margin-top: 20px; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; display: flex; gap: 10px; align-items: flex-start; }
.au-notice--ok { background: #ecfdf3; border: 1px solid #a7f3d0; color: #065f46; }
.au-notice--err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.au-foot { margin-top: 36px; display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 22px; border-top: 1px solid #f0f1f3; }
.au-foot img { height: 56px; width: auto; max-width: 100%; opacity: .9; }

@media (max-width: 991.98px) {
  .au-shell { grid-template-columns: 1fr; }
  .au-brand { display: none; }
  .au-mobile-logo { display: block; }
  .au-main { justify-content: flex-start; padding-top: 48px; min-height: 100vh; }
}
@media (prefers-reduced-motion: reduce) { .au-page * { transition: none !important; } }
