:root{ 
  --bg: #0b1020;
  --bg-accent: #0e1530;
  --card-bg: rgba(255,255,255,0.08);
  --card-stroke: rgba(255,255,255,0.15);
  --text: #e8ecf1;
  --muted: #b8c1cc;
  --primary: #4f8cff;       /* azul moderno */
  --primary-strong: #2d6af5;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 18px;
}

/* Fondo moderno con gradiente + textura sutil */
.auth-bg{
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, #203a6b 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 110%, #2c3e7c 0%, transparent 60%),
    linear-gradient(160deg, var(--bg), var(--bg-accent));
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* Centrado con flexbox */
.auth-wrapper{
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* Tarjeta de login tipo glassmorphism */
.auth-card{
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--card-stroke);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  gap: 16px;
}

/* Logo / marca */
.brand{
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}
.brand img{
  height: 64px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

/* Títulos */
.auth-title{
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}
.auth-subtitle{
  margin: -4px 0 8px;
  font-size: .95rem;
  color: var(--muted);
  text-align: center;
}

.logo-plate{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  background: linear-gradient(
  180deg,
  rgba(255, 255, 255, 0.9),
  rgba(242, 242, 242, 0.7)
);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px) brightness(1.15);
}


/* Campos */
.field{
  display: grid;
  gap: 6px;
}
.label{
  font-size: .9rem;
  color: var(--muted);
}
.input{
  /*width: 100%;*/
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(8,12,24,0.35);
  color: var(--text);
  padding: 0 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input::placeholder{ color: #9aa3af; }
.input:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,140,255,0.2);
  background: rgba(8,12,24,0.5);
}

/* Botón primario */
.btn-primary{
  margin-top: 8px;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: white;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .06s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 20px rgba(77,136,255,0.35);
}
.btn-primary:hover{
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgba(77,136,255,0.45);
}
.btn-primary:active{ transform: translateY(1px); }

/* Error */
.auth-error{
  margin-top: 2px;
  border: 1px solid rgba(255, 85, 85, .5);
  background: rgba(255, 55, 55, .08);
  color: #ffd3d3;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .9rem;
}

/* Footer */
.auth-footer{
  margin-top: 4px;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  border-top: 1px dashed rgba(255,255,255,0.15);
  padding-top: 10px;
}

/* Responsivo */
@media (max-width: 480px){
  .auth-card{ padding: 22px; }
  .brand img{ height: 56px; }
}
/* Footer moderno */
.modern-footer{
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.modern-footer:hover{
  opacity: 1;
  transform: translateY(-1px);
}
.modern-footer a{
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.modern-footer a:hover{
  text-decoration: underline;
}
