/* =====================================================================
   Pantallas de acceso (participante y back-office): panel de marca + formulario.
   ===================================================================== */

.auth { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

.auth-brand {
  background: radial-gradient(120% 140% at 15% 0%, #163650 0%, var(--ce-navy) 55%, var(--ce-navy-2) 100%);
  color: var(--ce-navy-ink); padding: 3rem 2.75rem; display: flex; flex-direction: column; justify-content: space-between;
  gap: 2rem; position: relative; overflow: hidden;
}
.auth-brand::after {
  content: ""; position: absolute; right: -90px; bottom: -90px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 182, 188, .28), transparent 70%);
}
.auth-brand.backoffice { background: radial-gradient(120% 140% at 15% 0%, #1B2C44 0%, var(--ce-navy) 60%, #080E18 100%); }
.auth-mark { display: flex; align-items: center; gap: .625rem; font-weight: 700; font-size: 1rem; letter-spacing: .2px; position: relative; z-index: 1; color: inherit; text-decoration: none; }
.auth-hero { position: relative; z-index: 1; max-width: 32ch; }
.auth-hero .eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #7FD3D6; margin-bottom: .625rem; }
.auth-hero .h1 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); font-weight: 700; line-height: 1.15; color: #fff; margin: 0; }
.auth-hero p { margin: .875rem 0 0; color: #B9C7D6; font-size: .875rem; line-height: 1.6; max-width: 38ch; }
.auth-stats { display: flex; gap: 1.625rem; position: relative; z-index: 1; flex-wrap: wrap; }
.auth-stats b { display: block; font-size: 1.375rem; font-weight: 700; font-family: var(--ce-font-mono); color: #fff; }
.auth-stats span { font-size: .72rem; color: #8FA3B8; }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: var(--ce-bg); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .auth-title { font-size: 1.3rem; font-weight: 700; margin: 0; }
.auth-card .lead-text { margin: .5rem 0 1.5rem; color: var(--ce-text-muted); font-size: .84rem; line-height: 1.55; }
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--ce-text-faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--ce-border); }
.auth-links { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; font-size: .78rem; margin-top: .75rem; }
.auth-links a { font-weight: 600; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-foot { margin-top: 1.625rem; font-size: .72rem; color: var(--ce-text-faint); line-height: 1.6; }
.auth-foot a { color: var(--ce-teal); text-decoration: none; font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

.captcha-box { display: flex; align-items: center; gap: .625rem; padding: .7rem .875rem; border: 1px solid var(--ce-border-strong); border-radius: var(--ce-r-sm); background: var(--ce-surface); font-size: .78rem; color: var(--ce-text-muted); }
.captcha-box .icon { color: var(--ce-teal); }

.code-input { font-family: var(--ce-font-mono); font-size: 1.4rem !important; letter-spacing: .5em; text-align: center; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-panel { align-items: flex-start; }
  .auth-brand { padding: 1.75rem 1.5rem; gap: 1.25rem; }
  .auth-brand::after { display: none; }
  .auth-stats { display: none; }
  .auth-hero .h1 { font-size: 1.4rem; }
}
