:root{
  --pf-red:#E60023;
  --pf-red2:#B8001C;
  --pf-ink:#111827;
  --pf-muted:#6b7280;
}

*{
  box-sizing:border-box;
  font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

html, body{
  width:100%;
  min-height:100%;
  margin:0;
}

body.pf-auth{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 16px;
  background:
    linear-gradient(135deg, rgba(0,0,0,.78), rgba(0,0,0,.70)),
    url("../images/admin-bg.png") center/cover no-repeat;
  color:var(--pf-ink);
}

/* Contenedor */
.pf-auth-shell{
  width:100%;
  max-width:520px;
  position:relative;
  z-index:1;
}

/* Card */
.pf-auth-card{
  width:100%;
  background:rgba(255,255,255,.96);
  border-radius:24px;
  border:1px solid rgba(255,255,255,.45);
  box-shadow:0 28px 90px rgba(0,0,0,.35);
  padding:40px 36px;
  animation:pfFadeUp .35s ease both;
}

/* Header */
.pf-auth-head{
  text-align:center;
  margin-bottom:24px;
}

.pf-brand-large{
  font-size:2.25rem;
  font-weight:800;
  letter-spacing:-.04em;
  color:var(--pf-ink);
  margin-bottom:10px;
}

.pf-title{
  font-size:1.45rem;
  font-weight:800;
  color:var(--pf-ink);
  margin-bottom:5px;
}

.pf-sub{
  font-size:.9rem;
  color:var(--pf-muted);
  margin:0;
}

/* Body */
.pf-auth-body{
  width:100%;
}

.pf-field{
  position:relative;
  margin-bottom:14px;
}

.pf-icon{
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  color:#9ca3af;
  font-size:14px;
  z-index:2;
}

.pf-input{
  width:100%;
  height:48px;
  border-radius:14px;
  border:1px solid #d9dee8;
  background:#fff;
  color:#111827;
  padding:0 44px 0 42px;
  outline:none;
  transition:.2s ease;
}

.pf-input::placeholder{
  color:#9ca3af;
}

.pf-input:focus{
  border-color:var(--pf-red);
  box-shadow:0 0 0 4px rgba(230,0,35,.14);
}

.pf-eye{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  color:#6b7280;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:3;
}

/* Checkbox */
.form-check-input:checked{
  background-color:var(--pf-red);
  border-color:var(--pf-red);
}

/* Botón */
.btn-login,
.pf-btn,
button[type="submit"]{
  width:100%;
  height:50px;
  border:0;
  border-radius:14px;
  background:linear-gradient(135deg,var(--pf-red),var(--pf-red2));
  color:#fff;
  font-weight:800;
  box-shadow:0 14px 32px rgba(230,0,35,.30);
  transition:.2s ease;
}

.btn-login:hover,
.pf-btn:hover,
button[type="submit"]:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(230,0,35,.40);
}

/* Footer */
.pf-auth-foot{
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid rgba(17,24,39,.08);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  color:#6b7280;
  font-size:.83rem;
}

.pf-brand-mini{
  font-weight:800;
  color:#111827;
}

.pf-brand-mini span{
  color:var(--pf-red);
}

.pf-credit{
  font-weight:600;
}

/* Alertas */
.alert{
  border-radius:12px;
}

/* Animación */
@keyframes pfFadeUp{
  from{
    opacity:0;
    transform:translateY(14px) scale(.98);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

/* Responsive */
@media (max-width:480px){
  .pf-auth-card{
    padding:32px 24px;
    border-radius:20px;
  }

  .pf-brand-large{
    font-size:1.85rem;
  }

  .pf-title{
    font-size:1.2rem;
  }

  .pf-auth-foot{
    flex-direction:column;
    text-align:center;
  }
}
