/* ================================================================
   DigiEmpleados — Login page
   ================================================================ */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { font-size:15px; -webkit-font-smoothing:antialiased; }

body {
  font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07090f;
  color: #f0f4ff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.10) 0%, transparent 70%);
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  left: 20%;
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(0,212,170,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Container */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 380px;
  z-index: 1;
}

/* Card */
.login-box {
  width: 100%;
  background: #0f1623;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 36px 32px 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03);
  animation: slideUp 0.45s cubic-bezier(.16,1,.3,1) both;
}

/* Logo */
.login-box > div:first-child {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.login-box img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
}

/* Headings */
.login-box h2 {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  color: #f0f4ff;
  margin-bottom: 5px;
  letter-spacing: -0.02em;
}

.login-box p {
  text-align: center;
  color: #4d607a;
  font-size: 0.85rem;
  margin-bottom: 26px;
}

/* Inputs */
form input {
  width: 100%;
  padding: 10px 13px;
  background: #141d2e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  color: #f0f4ff;
  font-size: 0.9rem;
  font-family: inherit;
  margin-bottom: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
}
form input::placeholder { color: #3d4a63; }
form input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.14);
}

/* Button */
button[type="submit"], button[name="login"] {
  width: 100%;
  padding: 10px;
  background: #6366f1;
  border: none;
  border-radius: 9px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  margin-top: 4px;
}
button[type="submit"]:hover, button[name="login"]:hover {
  background: #4f46e5;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.22);
  transform: translateY(-1px);
}
button[type="submit"]:active, button[name="login"]:active {
  transform: translateY(0);
}

/* Error */
.error {
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 0.83rem;
  margin-bottom: 14px;
  text-align: center;
}

/* Footer */
footer {
  margin-top: 22px;
  color: #2a3448;
  font-size: 0.75rem;
  text-align: center;
}

@keyframes slideUp {
  from { opacity:0; transform: translateY(18px); }
  to   { opacity:1; transform: translateY(0); }
}

@media (max-width: 420px) {
  .login-box { padding: 28px 22px 24px; }
}
