/* ── Login Page Styles ───────────────────────────────────────── */
body.login-body {
  background: var(--bg-base);
  min-height: 100vh;
  display:    flex;
}

.login-wrapper {
  display:    flex;
  width:      100%;
  min-height: 100vh;
}

/* Panel izquierdo — Branding */
.login-brand {
  flex:       1;
  background: var(--primary);
  position:   relative;
  display:    flex;
  align-items: center;
  justify-content: center;
  overflow:   hidden;
  min-height: 100vh;
}

.brand-gradient {
  position:   absolute;
  inset:      0;
  background: linear-gradient(135deg,
    rgba(13,143,203,0.4) 0%,
    rgba(26,58,92,0.0)   50%,
    rgba(13,143,203,0.2) 100%);
  pointer-events: none;
}

/* Patrón de puntos decorativo */
.login-brand::before {
  content:    '';
  position:   absolute;
  inset:      0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.brand-content {
  position:   relative;
  z-index:    1;
  text-align: center;
  padding:    40px 48px;
  max-width:  420px;
}

.brand-logo {
  height:   70px;
  width:    auto;
  margin:   0 auto 24px;
  filter:   drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}

.brand-title {
  font-size:   2rem;
  font-weight: 700;
  color:       #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 1rem;
  color:     rgba(255,255,255,0.7);
  margin-bottom: 48px;
  line-height: 1.5;
}

.brand-features {
  display:    flex;
  flex-direction: column;
  gap:        16px;
  text-align: left;
}

.feature-item {
  display:    flex;
  align-items: center;
  gap:        12px;
  color:      rgba(255,255,255,0.85);
  font-size:  0.925rem;
  font-weight: 500;
  padding:    12px 16px;
  background: rgba(255,255,255,0.06);
  border:     1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.feature-item:hover {
  background: rgba(255,255,255,0.1);
  transform:  translateX(4px);
}

.feature-item svg {
  width:  20px;
  height: 20px;
  color:  var(--accent-light);
  flex-shrink: 0;
}

/* Panel derecho — Formulario */
.login-form-panel {
  width:       440px;
  flex-shrink: 0;
  display:     flex;
  align-items: center;
  justify-content: center;
  background:  var(--bg-surface);
  padding:     40px;
  position:    relative;
  box-shadow:  -4px 0 24px rgba(0,0,0,0.08);
}

.login-form-box {
  width:      100%;
  max-width:  340px;
}

.login-header {
  margin-bottom: 28px;
}

.login-header h2 {
  font-size:   1.75rem;
  font-weight: 700;
  color:       var(--text-primary);
  margin-bottom: 4px;
}

.login-header p {
  font-size: 0.9rem;
  color:     var(--text-muted);
}

/* Input con icono */
.input-icon-wrap {
  position: relative;
}

.input-icon {
  position:   absolute;
  left:       12px;
  top:        50%;
  transform:  translateY(-50%);
  width:      16px;
  height:     16px;
  color:      var(--text-muted);
  pointer-events: none;
}

.input-icon-wrap .form-control {
  padding-left: 38px;
}

.input-icon-wrap .form-control:has(~ .input-icon-right) {
  padding-right: 40px;
}

.input-icon-right {
  position:   absolute;
  right:      10px;
  top:        50%;
  transform:  translateY(-50%);
  background: none;
  border:     none;
  color:      var(--text-muted);
  cursor:     pointer;
  padding:    4px;
  display:    flex;
  align-items: center;
  transition: color var(--transition);
}

.input-icon-right:hover { color: var(--accent); }
.input-icon-right svg   { width: 16px; height: 16px; }

.login-footer-text {
  text-align: center;
  margin-top: 28px;
  font-size:  0.75rem;
  color:      var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .login-brand       { display: none; }
  .login-form-panel  { width: 100%; padding: 32px 24px; box-shadow: none; }
}
