/* Antes iba incrustado en templates/account/_auth_styles.html. */
  @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .anim-up { animation: fadeUp .5s cubic-bezier(.16,1,.3,1) both; }
  .d1 { animation-delay: .04s; } .d2 { animation-delay: .1s; } .d3 { animation-delay: .16s; }
  .d4 { animation-delay: .22s; } .d5 { animation-delay: .28s; } .d6 { animation-delay: .34s; }
  @media (prefers-reduced-motion: reduce) { .anim-up { animation: none; } }

  .auth-label { display: block; font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
  .auth-field { position: relative; }
  .auth-field > .auth-ico { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #94a3b8; pointer-events: none; transition: color .15s; z-index: 1; }
  .auth-field:focus-within > .auth-ico { color: #0072cb; }
  .auth-input { width: 100%; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; padding: .8rem 1rem .8rem 2.85rem;
                font-size: .9rem; color: #0f172a; transition: border-color .15s, box-shadow .15s; }
  .auth-input::placeholder { color: #64748b; }   /* ≥ 4,5:1 (STYLEGUIDE §3 bis) */
  .auth-input:hover { border-color: #cbd5e1; }
  .auth-input:focus { outline: none; border-color: #37a9fb; box-shadow: 0 0 0 3px rgba(55,169,251,.15); }

  .auth-google { display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; background: #fff; border: 1px solid #e2e8f0;
                 border-radius: 1rem; padding: .8rem 1rem; font-weight: 600; font-size: .9rem; color: #334155;
                 box-shadow: 0 1px 3px rgba(15,23,42,.05); transition: border-color .18s, box-shadow .18s, background-color .15s, transform .1s; }
  .auth-google:hover { border-color: #bfdbfe; background: #f8faff; box-shadow: 0 0 0 3px rgba(66,133,244,.07), 0 2px 6px rgba(15,23,42,.06); }
  .auth-google:active { transform: scale(.985); }
  .auth-submit { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; background: #0072cb; color: #fff;
                 font-weight: 700; font-size: .9rem; padding: .85rem 1rem; border-radius: 1rem;
                 box-shadow: 0 6px 16px -10px rgba(15,23,42,.3); transition: background-color .14s, box-shadow .14s, transform .1s; }
  .auth-submit:hover { background: #005baa; }
  .auth-submit:active { transform: scale(.98); }
  .auth-submit svg { transition: transform .2s cubic-bezier(.16,1,.3,1); }
  .auth-submit:hover svg { transform: translateX(3px); }
  .auth-sep { display: flex; align-items: center; gap: .75rem; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #64748b; }
  html.dark .auth-sep { color: #8590a1; }
  .auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }
  .auth-check { width: 1rem; height: 1rem; border-radius: .3rem; accent-color: #0072cb; }

  /* Panel lateral */
  .auth-aside { background: linear-gradient(150deg,#071e3d 0%,#0a4171 38%,#005baa 72%,#0072cb 100%); }
  .auth-feat { display: flex; align-items: center; gap: .85rem; }
  .auth-feat .ic { width: 2.25rem; height: 2.25rem; border-radius: .8rem; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
                   background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #bfe3ff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
  .auth-peek { border-radius: 1rem; padding: .4rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
               box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 30px 60px -30px rgba(2,12,27,.8); }
  .auth-peek img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 650px); object-fit: cover; object-position: left top; border-radius: .7rem; }
  @media (max-height: 800px) { .auth-peek { display: none; } }

  html.dark .auth-label { color: #8590a1; }
  html.dark .auth-submit { box-shadow: none; }
  html.dark .auth-input, html.dark .auth-google { background: #131925; border-color: #2c3340; color: #c4cbd6; }
  html.dark .auth-input:hover { border-color: #3a4354; }
  html.dark .auth-input:focus { border-color: #37a9fb; }
  html.dark .auth-google:hover { background: #171d29; border-color: #3a4354; }
  html.dark .auth-sep::before, html.dark .auth-sep::after { background: #2c3340; }
  html.dark .auth-ico { color: #8590a1; }

  /* Error del servidor (login/registro): fijo encima del formulario, con entrada suave */
  .auth-alert { display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .9rem; border-radius: .9rem; border: 1px solid #fecaca;
                background: #fef2f2; color: #b91c1c; font-size: .85rem; font-weight: 600; line-height: 1.4;
                animation: fadeUp .3s cubic-bezier(.16,1,.3,1) both; }
  .auth-alert > svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
  .auth-alert p + p { margin-top: .25rem; }
  html.dark .auth-alert { background: rgba(244,63,94,.12); border-color: rgba(244,63,94,.32); color: #fda4af; }
  @media (prefers-reduced-motion: reduce) { .auth-alert { animation: none; } }
  /* Pendiente de envío (ubiBtnSpinner): estos botones ya separan con gap, sin margen extra */
  .auth-submit.ubi-btn-busy > span + span, .auth-google.ubi-btn-busy > span + span { margin-left: 0 !important; }
  .auth-submit:disabled { cursor: progress; }

/* ── oscuro: botones azules (generado) ── */
html.dark .auth-submit { background:#006bc0; color:#eef2f7; }
/* ── fin oscuro: botones azules ── */
