/* ── Login Page — Premium Split Layout ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

body {
  font-family: 'Inter', sans-serif;
  background: #f0f4f8;
}

/* ── Layout principal ── */
.login-page {
  display: flex;
  min-height: calc(100vh - 60px);
}

/* ── Panel izquierdo (brand) ── */
.login-brand {
  flex: 0 0 42%;
  background: linear-gradient(145deg, #064e3b 0%, #065f46 40%, #047857 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.login-brand::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.brand-inner {
  position: relative;
  z-index: 1;
  color: white;
}

.brand-logo {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
}

.brand-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.brand-title span {
  color: #6ee7b7;
}

.brand-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.brand-stats {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  width: fit-content;
  backdrop-filter: blur(4px);
}

/* ── Panel derecho (form) ── */
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: #f8fafc;
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.4rem;
  letter-spacing: -0.4px;
}

.login-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

/* ── Alerts ── */
.login-alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.login-alert-warning {
  background: #fef9c3;
  color: #92400e;
  border: 1px solid #fde68a;
}

.login-alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

/* ── Formulario ── */
#login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.form-group input {
  padding: 0.7rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: #111827;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
  outline: none;
}

.form-group input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Password toggle */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 3rem;
}

.toggle-password {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #10b981;
  background: none;
}

/* Botón principal */
.btn-login {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(16,185,129,0.35);
  margin-top: 0.25rem;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16,185,129,0.4);
}

.btn-login:active {
  transform: translateY(0);
}

/* Botones sociales */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #9ca3af;
  font-size: 0.8rem;
  margin: 1.25rem 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.social-btns {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  border: 1.5px solid #e5e7eb;
  background: white;
  color: #374151;
}

.btn-social:hover {
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn-google:hover { border-color: #db4437; color: #db4437; }
.btn-facebook { background: white; color: #1877f2; border-color: #e5e7eb; }
.btn-facebook:hover { border-color: #1877f2; background: #f0f6ff; }

/* Link de registro */
.register-link {
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}

.register-link a {
  color: #10b981;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.register-link a:hover {
  color: #059669;
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .login-page { flex-direction: column; }
  .login-brand {
    flex: none;
    padding: 2.5rem 1.5rem;
    min-height: 220px;
  }
  .brand-title { font-size: 1.8rem; }
  .brand-stats { flex-direction: row; flex-wrap: wrap; }
  .login-form-panel { padding: 2rem 1.25rem; }
}
