/* ════════════════════════════════════════════════════
   auth.css — Login / Registro AESS
   Estética: Navy (#1F3864) + Accent (#2E75B6)
════════════════════════════════════════════════════ */

body { height: 100vh; height: 100dvh; overflow: hidden; }

.auth-shell {
  display: flex; height: 100vh; height: 100dvh; overflow: hidden;
}

/* ── Panel izquierdo — Branding ──────────────────── */
.auth-brand {
  width: 42%; min-width: 380px; flex-shrink: 0;
  background:
    linear-gradient(165deg, rgba(10,22,40,.92) 0%, rgba(31,56,100,.88) 60%, rgba(20,38,74,.95) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(255,255,255,.012) 30px,
      rgba(255,255,255,.012) 31px
    );
  background-color: #14264a;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  position: relative; overflow: hidden;
}

/* Elemento decorativo de fondo */
.auth-brand::before {
  content: '';
  position: absolute; bottom: -80px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,117,182,.18) 0%, transparent 70%);
  pointer-events: none;
}
.auth-brand::after {
  content: '';
  position: absolute; top: -60px; left: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  border: 1px solid rgba(46,117,182,.2);
  pointer-events: none;
}

.auth-brand__inner {
  max-width: 380px; width: 100%;
  display: flex; flex-direction: column; gap: 28px;
  position: relative; z-index: 1;
}

.auth-brand__logo {
  display: flex; align-items: center; gap: 14px;
}
.auth-brand__logo img {
  width: 64px; height: 64px; object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}
.auth-brand__monogram {
  font-family: 'Crimson Pro', serif;
  font-size: 2rem; font-weight: 700; letter-spacing: .06em;
  color: #6ba8d8;
  text-shadow: 0 2px 12px rgba(46,117,182,.35);
}

.auth-brand__title {
  font-family: 'Crimson Pro', serif;
  font-size: 3rem; font-weight: 700; line-height: 1.1;
  letter-spacing: -.01em;
}

.auth-brand__sub {
  font-size: 13.5px; line-height: 1.6;
  color: rgba(255,255,255,.65); max-width: 300px;
}

.auth-brand__features {
  display: flex; flex-direction: column; gap: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
}
.abf-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.8);
}
.abf-item i {
  font-size: 16px; color: #6ba8d8; flex-shrink: 0;
}

.auth-brand__seal {
  margin-top: 8px;
}
.seal-ring {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(46,117,182,.4);
  border-radius: 99px; padding: 5px 14px;
  font-size: 10px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}

/* ── Panel derecho — Formulario ──────────────────── */
.auth-form-panel {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6; padding: 32px;
}

.auth-form-card {
  width: 100%; max-width: 420px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 8px 40px rgba(10,22,40,.12), 0 1px 2px rgba(0,0,0,.06);
  padding: 36px 38px;
  animation: fadeUp .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.afc-header {
  text-align: center; margin-bottom: 28px;
}
.afc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: #eff6ff; color: #1F3864;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 14px;
  border: 1px solid #bfdbf7;
}
.afc-header h2 {
  font-family: 'Crimson Pro', serif;
  font-size: 1.65rem; font-weight: 700; color: #14264a; margin-bottom: 4px;
}
.afc-header p { font-size: 13px; color: #6b7280; }

/* Alerta de error */
.afc-alert {
  display: flex; align-items: center; gap: 8px;
  background: #fee2e2; border: 1px solid #fca5a5;
  border-radius: 10px; padding: 10px 12px;
  font-size: 12.5px; color: #dc2626; margin-bottom: 20px;
}
.afc-alert i { font-size: 16px; flex-shrink: 0; }
.afc-alert--info { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }

/* Formulario */
.afc-form { display: flex; flex-direction: column; gap: 18px; }

.afc-field { display: flex; flex-direction: column; gap: 6px; }
.afc-field label {
  font-size: 12px; font-weight: 600; color: #374151;
  text-transform: uppercase; letter-spacing: .05em;
}
.afc-input-wrap {
  position: relative; display: flex; align-items: center;
}
.afc-input-wrap > i:first-child {
  position: absolute; left: 11px; font-size: 15px; color: #9ca3af; pointer-events: none;
}
.afc-input-wrap input {
  width: 100%; padding: 10px 36px 10px 36px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 13.5px; outline: none;
  transition: border-color .18s, box-shadow .18s;
  background: #f9fafb; color: #111827;
}
.afc-input-wrap input:focus {
  border-color: #2E75B6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46,117,182,.15);
}
.afc-eye {
  position: absolute; right: 10px;
  color: #9ca3af; font-size: 15px; padding: 2px;
  transition: color .15s;
}
.afc-eye:hover { color: #374151; }

/* Botón submit */
.afc-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; border-radius: 10px;
  background: linear-gradient(135deg, #1F3864 0%, #2E75B6 100%);
  color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(31,56,100,.4);
  transition: all .18s; cursor: pointer;
  border: none;
}
.afc-btn:hover {
  background: linear-gradient(135deg, #14264a 0%, #1F3864 100%);
  box-shadow: 0 4px 16px rgba(31,56,100,.5);
  transform: translateY(-1px);
}
.afc-btn i { font-size: 16px; }

/* Footer del card */
.afc-footer {
  text-align: center; margin-top: 22px;
  font-size: 13px; color: #6b7280;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.afc-footer a {
  color: #2E75B6; font-weight: 600; text-decoration: none;
  transition: color .15s;
}
.afc-footer a:hover { color: #14264a; }

/* Animación */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .auth-brand { display: none; }
  .auth-form-panel { background: #14264a; }
  .auth-form-card { box-shadow: 0 4px 32px rgba(0,0,0,.4); }
}
