/* ===== FONDO GENERAL ===== */

.page-bg {
  margin: 0;
  min-height: 100vh;
  background: #e2f6f2; /* verde agua clarito */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
}

/* ===== CONTENEDOR GENERAL CENTRADO ===== */

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 16px 40px;
  box-sizing: border-box;
}

/* (Opcional) estilos de marca si en el futuro agregas un logo */
.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0e7a4e, #1b9aaa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #064e3b;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: #4b5563;
}

/* ===== LAYOUT PRINCIPAL ===== */

.main-layout {
  width: 100%;
  max-width: 520px; /* el formulario es el protagonista */
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ===== CAJA DE SEGURIDAD ===== */

.security-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  font-size: 0.9rem;
}

.security-title {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.security-list {
  margin: 0;
  padding-left: 18px;
  color: #4b5563;
}

/* ===== CAJA DE LOGIN ===== */

.login-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 26px 26px 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10); /* sombra un poco más fuerte */
}

/* ===== HEADER FINTECH DENTRO DEL LOGIN ===== */

.login-header {
  text-align: center;
  margin-bottom: 22px;
}

/* Chip / badge verde arriba del título */
.login-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background: rgba(134, 193, 47, 0.12);
  color: #4b7a10;
  margin-bottom: 8px;
}

/* Título fintech con degradado */
.login-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(120deg, #0fd850, #00c9ff);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: 0.03em;
}

/* Subtítulo suave debajo del título */
.login-subtitle {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #6b7280;
}

/* ===== FORMULARIO ===== */

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #d4d4d8;
  background: #f3f4f6;
  font-size: 0.95rem;
  color: #111827;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-input:focus {
  outline: none;
  border-color: #86c12f;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(134, 193, 47, 0.18);
}

/* wrapper para el ojo */

.password-wrapper {
  position: relative;
}

.eye-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #9ca3af;
  cursor: pointer;
}

/* ===== BOTÓN ===== */

.btn-login {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px;
  margin-top: 8px;
  background: linear-gradient(90deg, #86c12f, #7ab629);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.btn-login:hover {
  filter: brightness(1.03);
}

/* ===== LINKS BAJO EL BOTÓN ===== */

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.8rem;
}

.login-links a {
  color: #61a60b;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

/* ===== AVISO DE DEMO ===== */

.demo-warning {
  margin-top: 14px;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ===== FOOTER ===== */

.site-footer {
  margin-top: 24px;
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
}

/* === Banner superior "Sitio en construcción" === */

.top-banner {
  position: fixed;
  top: 10px;
  left: 10px;
  background: #ffcc00;
  color: #333;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
  animation: parpadeo 2s infinite;
  z-index: 1000;
}

/* Animación original de parpadeo */
@keyframes parpadeo {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 600px) {
  .page-shell {
    padding-top: 70px;
  }

  .brand-header {
    margin-bottom: 18px;
  }

  .main-layout {
    max-width: 100%;
  }

  .login-title {
    font-size: 1.25rem;
  }
}
