/* EPA · Login — estética Devexa. Independiente del tema Vuexy. */
:root {
  --bg: #14061d; --bg-deep: #0c0312; --panel: #1f0b2c;
  --text: #fbf7ff; --muted: #c9b6d9; --faint: #8f78a4;
  --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.14);
  --glass: rgba(255,255,255,.04);
  --accent: #FF7A00; --accent-rgb: 255,122,0;
  --accent2: #b23ccf; --accent2-rgb: 178,60,207;
  --ok: #46d39a; --danger: #ff6b81; --warn: #ffcc66;
  --shadow: 0 18px 55px rgba(0,0,0,.45);
  --font: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background-color: #14061d; }
html { font-size: 87.5%; }
body {
  font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 700px at 8% 0%, rgba(122,28,151,.45), transparent 60%),
    radial-gradient(900px 560px at 92% 15%, rgba(var(--accent-rgb), .14), transparent 58%),
    radial-gradient(800px 600px at 70% 100%, rgba(var(--accent2-rgb), .16), transparent 60%),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 35%, var(--bg-deep));
  background-attachment: fixed;
}
a { color: #ffa24d; text-decoration: none; }
a:hover { color: #e07bff; }
:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .7); outline-offset: 2px; }

.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }

/* --- Marca --- */
.auth-brand {
  position: relative; padding: 40px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.auth-brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(600px 400px at 30% 40%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(600px 400px at 30% 40%, #000, transparent 70%);
  opacity: .5;
}
.auth-brand > * { position: relative; z-index: 1; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.brand img { height: 34px; width: auto; }
.brand:hover { color: #fff; }
.pill {
  display: inline-flex; gap: 10px; align-items: center; padding: 8px 12px;
  border: 1px solid var(--line); background: var(--glass); border-radius: 999px;
  color: var(--muted); font-size: 13px; backdrop-filter: blur(10px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15); }
.brand-copy h1 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.08; margin: 20px 0 14px; letter-spacing: -.02em; max-width: 16ch; }
.grad { background: linear-gradient(90deg, #ffa24d, #e07bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-copy p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 46ch; margin: 0; }

.brand-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card {
  padding: 14px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.stat-card .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stat-card b { font-size: 1rem; }
.stat-card small { color: var(--muted); font-size: .78rem; display: block; margin: 4px 0 12px; }
.tag { font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* --- Formulario --- */
.auth-form { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; gap: 20px; }
.card {
  width: 100%; max-width: 420px; padding: 34px 30px;
  border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow: var(--shadow); backdrop-filter: blur(14px);
}
.brand-mobile { display: none; margin-bottom: 22px; }
.card h2 { margin: 0 0 6px; font-size: 1.6rem; letter-spacing: -.01em; }
.muted { color: var(--muted); margin: 0 0 22px; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 14px; font-size: .9rem; margin-bottom: 18px; line-height: 1.45; }
.notice i { margin-top: 2px; }
.notice-error { background: rgba(255,107,129,.08); border: 1px solid rgba(255,107,129,.3); color: #ffd0d8; }
.notice-info { background: rgba(var(--accent-rgb), .07); border: 1px solid rgba(var(--accent-rgb), .25); color: #ffe0c4; }
.notice img { display: none; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.control { position: relative; }
.control > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: .9rem; pointer-events: none; transition: color .18s; }
.control input {
  width: 100%; padding: 13px 44px 13px 40px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--text);
  font: inherit; font-size: .97rem; transition: border-color .18s, box-shadow .18s, background .18s;
}
.control input::placeholder { color: var(--faint); }
.control input:focus { outline: none; border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15); background: rgba(255,255,255,.05); }
.control:focus-within > i { color: var(--accent); }
.toggle-pass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--faint); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; }
.toggle-pass:hover { color: #fff; background: var(--glass); }
.field.invalid input { border-color: rgba(255,107,129,.6); box-shadow: 0 0 0 4px rgba(255,107,129,.12); }
.caps { display: inline-block; margin-top: 6px; color: var(--warn); font-size: .78rem; }

.btn-primary {
  width: 100%; margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 16px; border-radius: 14px; cursor: pointer; font: inherit; font-weight: 700; color: #fff;
  border: 1px solid rgba(var(--accent-rgb), .45);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .9), rgba(var(--accent2-rgb), .9));
  box-shadow: 0 18px 45px rgba(var(--accent-rgb), .2);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 45px rgba(var(--accent-rgb), .32); }
.btn-primary:disabled { cursor: progress; filter: saturate(.7); transform: none; }
.btn-primary.loading i { animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }

.help { color: var(--faint); font-size: .84rem; text-align: center; margin: 20px 0 0; line-height: 1.5; }
.auth-foot { display: flex; gap: 16px; justify-content: space-between; width: 100%; max-width: 420px; font-size: .8rem; color: var(--faint); flex-wrap: wrap; }
.auth-foot a { color: var(--muted); }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .brand-mobile { display: inline-flex; }
}
@media (max-width: 480px) {
  .card { padding: 26px 20px; border-radius: 22px; }
  .auth-form { padding: 24px 16px; }
}

/* Letra condensada */
body { line-height: 1.38; letter-spacing: -.01em; }

/* Identidad EPA: columna de marca violeta y botón naranja */
.auth-brand { background: linear-gradient(160deg, rgba(77,2,97,.85), rgba(38,4,52,.6)); }
.btn-primary { background: linear-gradient(135deg, #FF7A00, #ff5a36); border-color: rgba(255,122,0,.6); box-shadow: 0 16px 40px rgba(255,122,0,.28); }
.btn-primary:hover { box-shadow: 0 18px 45px rgba(255,122,0,.4); }
