/* LOGIN.CSS - Estética acorde al calendario (oscuro, moderno) */

/* RESET / BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: linear-gradient(180deg,#253242 0%, #1e2836 100%); /*background: linear-gradient(180deg,#0b0f14 0%, #0d1117 100%);*/
  color: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

/* CONTENEDOR PRINCIPAL */
.login-page {
  width: 100%;
  max-width: 420px;
}

/* TARJETA */
.login-card {
  background: linear-gradient(180deg,#0f1418,#15191d);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(2,6,23,0.6);
}

/* BRAND */
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.02);
}

.brand-text .org {
  display: block;
  color: #ffd966;
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-text .sistema {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
}

/* TITULO */
h1 {
  margin: 8px 0 16px 0;
  font-size: 1.25rem;
  color: #cfe9ff;
  text-align: left;
}

/* FORM */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* LABELS y INPUTS */
.login-form label {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 4px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  color: #e6e6e6;
  font-size: 0.95rem;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease, transform .08s ease;
}

.login-form input:focus {
  border-color: rgba(0,230,184,0.24);
  box-shadow: 0 6px 18px rgba(0,230,184,0.06);
  transform: translateY(-1px);
}

/* WRAPPER de contraseña (input + botón) */
.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap .toggle-pass {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: #cfe9ff;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background .12s ease;
}

.password-wrap .toggle-pass:hover {
  background: rgba(255,255,255,0.02);
}

/* FILA: checkbox + link */
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkbox {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #00e6b8; /* color moderno para checkbox en navegadores que lo soporten */
}

.forgot {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color .12s ease, text-decoration .12s ease;
}

.forgot:hover { color: #00e6b8; text-decoration: underline; }

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: #e6e6e6;
  transition: background .12s ease, transform .08s ease, box-shadow .12s ease;
}

.btn:hover {
  background: rgba(0,230,184,0.10);
  color: #061313;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,230,184,0.08);
}

.submit {
  background: linear-gradient(90deg,#00e6b8,#00c4a0);
  border: none;
  color: #041414;
}

.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
}

/* DIVIDER */
.divider {
  text-align: center;
  margin: 6px 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.divider span {
  display: inline-block;
  background: rgba(255,255,255,0.02);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.03);
}

/* FOOTER */
.login-foot {
  margin-top: 12px;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .login-card { padding: 16px; }
  .logo-img { width: 40px; height: 40px; }
  h1 { font-size: 1.05rem; }
  .btn { padding: 10px; font-size: 0.92rem; }
}
