/* assets/css/login.css */

:root{
  --lp-bg: #f6f8fb;
  --lp-surface: #ffffff;
  --lp-text: #0f172a;
  --lp-muted: #64748b;
  --lp-line: rgba(15, 23, 42, .10);

  --lp-primary: #2563eb;
  --lp-primary-2: #1d4ed8;
  --lp-success: #16a34a;
  --lp-warning: #f59e0b;

  --lp-radius: 20px;
  --lp-shadow: 0 18px 50px rgba(15, 23, 42, .12);
  --lp-shadow-soft: 0 10px 22px rgba(15, 23, 42, .08);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  min-height:100vh;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color: var(--lp-text);
  background:
    radial-gradient(900px 420px at 8% 8%, rgba(37,99,235,.16), transparent 60%),
    radial-gradient(900px 420px at 92% 12%, rgba(16,185,129,.10), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, var(--lp-bg) 42%, var(--lp-bg) 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}

/* Tarjeta principal */
.login-card{
  width: min(440px, 95vw);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

/* Detalle decorativo superior */
.login-card::before{
  content:"";
  position:absolute;
  top:-80px;
  right:-120px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, rgba(37,99,235,.35), transparent 60%);
  border-radius: 50%;
  filter: blur(0px);
  pointer-events:none;
}
.login-card::after{
  content:"";
  position:absolute;
  bottom:-90px;
  left:-130px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 40% 40%, rgba(16,185,129,.25), transparent 60%);
  border-radius: 50%;
  pointer-events:none;
}

/* Header */
.login-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 6px 6px 14px;
  position: relative;
  z-index: 1;
}

.brand{
  display:flex;
  flex-direction:column;
  gap: 2px;
}
.brand h1{
  margin:0;
  font-size: 22px;
  letter-spacing: .2px;
}
.brand p{
  margin:0;
  color: var(--lp-muted);
  font-size: 13px;
}

.badges{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge-pill{
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--lp-line);
  background: #fff;
  box-shadow: var(--lp-shadow-soft);
  color: var(--lp-text);
  white-space: nowrap;
}

/* Mensajes */
.alert{
  position: relative;
  z-index: 1;
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.22);
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 14px;
  margin: 6px 6px 12px;
  font-size: 14px;
}

/* Formulario */
form{
  position: relative;
  z-index: 1;
  padding: 6px;
}

label{
  display:block;
  margin: 10px 2px 6px;
  color: var(--lp-muted);
  font-size: 13px;
  font-weight: 600;
}

.field{
  position: relative;
}

input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--lp-line);
  background: rgba(255,255,255,.92);
  color: var(--lp-text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .02s ease;
}

input:focus{
  border-color: rgba(37,99,235,.35);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

input::placeholder{
  color: rgba(100,116,139,.8);
}

/* Botón */
button{
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .2px;
  color: #fff;
  background: linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-primary-2) 100%);
  box-shadow: 0 14px 28px rgba(37,99,235,.22);
  transition: transform .05s ease, filter .15s ease, box-shadow .15s ease;
}

button:hover{
  filter: brightness(1.03);
  box-shadow: 0 16px 34px rgba(37,99,235,.28);
}

button:active{
  transform: translateY(1px);
}

/* Footer */
.login-foot{
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 0 6px 6px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  color: var(--lp-muted);
  font-size: 12px;
}

.hr{
  position: relative;
  z-index: 1;
  height: 1px;
  background: var(--lp-line);
  margin: 10px 6px 0;
}

/* Responsive */
@media (max-width: 380px){
  .badges{ display:none; }
}
