/* auth.seismik.org/id: elección del proveedor de acceso. Tokens en styles.css. */
.auth-page {
  min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(700px 420px at 15% 0%, var(--glow), transparent 65%),
    radial-gradient(600px 380px at 100% 100%, rgb(255 122 89 / 0.08), transparent 65%),
    var(--bg);
}
.auth-card {
  width: min(100%, 440px); padding: clamp(28px, 6vw, 44px);
  border: 1px solid var(--line-strong); border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow);
}
.auth-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 850; letter-spacing: 0.14em; }
.auth-brand:hover { color: var(--text); }
.auth-brand .brand-logo { width: 36px; height: 36px; }
.auth-card .eyebrow { margin: 36px 0 10px; }
.auth-card h1 { margin: 0; font-size: clamp(1.9rem, 6vw, 2.5rem); line-height: 1.05; letter-spacing: -0.04em; }
.auth-copy { margin: 14px 0 0; color: var(--muted); line-height: 1.55; }
.availability { margin: 24px 0 0; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--warn) 9%, var(--surface-2)); color: var(--muted); line-height: 1.5; }
.provider-list { display: grid; gap: 10px; margin: 28px 0 24px; }
.provider-list:not(:has(.provider-button:not([hidden]))) { margin: 0; }
.provider-button {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px;
  border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-2); color: var(--text);
  font: inherit; font-weight: 700; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.provider-button:hover { border-color: var(--primary); background: var(--surface-3); }
.provider-button svg { display: block; width: 20px; height: 20px; flex: none; }
/* Apple pide botón blanco sobre fondo oscuro y negro sobre fondo claro. */
.provider-apple { border-color: #fff; background: #fff; color: #000; }
.provider-apple:hover { border-color: #e8e8ed; background: #e8e8ed; }
@media (prefers-color-scheme: light) {
  .provider-apple { border-color: #000; background: #000; color: #fff; }
  .provider-apple:hover { border-color: #1d1d1f; background: #1d1d1f; }
}
.return-link { display: inline-block; margin-top: 8px; color: var(--primary); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.return-link:hover { text-decoration: underline; }
.auth-card [hidden] { display: none !important; }
#email-form { display: grid; gap: 12px; }
#email-access h2 { margin: 24px 0 0; font-size: 1.35rem; line-height: 1.25; letter-spacing: -.02em; }
#email-description { margin-bottom: 20px; }
.email-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-2); }
.email-navigation button { min-height: 44px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.email-navigation button[aria-pressed=true] { border-color: var(--primary); background: var(--surface-3); color: var(--text); }
.email-fields { display: grid; gap: 12px; }
.field-hint { margin: -4px 0 0; color: var(--muted); font-size: .9rem; }
#email-form input:not([type=checkbox]) { width: 100%; padding: 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; }
#link-label { font-size: .9rem; line-height: 1.5; }
.email-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.email-actions button { border: 0; background: transparent; color: var(--primary); font: inherit; cursor: pointer; padding: 6px 0; }
#email-access button:disabled { opacity: .55; cursor: wait; }
#email-message[data-error=true] { color: var(--warn); }
#verification-actions { margin-top: 12px; }
#email-submit { width: 100%; }
#email-access button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
