.theme-toggle:hover {
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.brand-name,
.login-title {
  letter-spacing: -0.02em;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CUSTOM SELECT DROPDOWN (Estilo AHF - Idéntico a Pacientes)
   ========================================================= */
.custom-sel-wrap {
  position: relative;
  width: 100%;
  z-index: 10;
}
.custom-sel-wrap.open {
  z-index: 1000 !important;
}
.custom-sel-display {
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: .55rem .85rem;
  background: var(--color-surface-2, #f8fafc);
  border: 1.5px solid var(--color-divider, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text, #1e293b);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.custom-sel-display:hover, .custom-sel-wrap.open .custom-sel-display {
  border-color: var(--color-primary, #1a3734);
  box-shadow: 0 0 0 3px rgba(26, 55, 52, 0.12);
  background: #fff;
}
.custom-sel-display .arr {
  font-size: 0.72rem;
  color: #64748b;
  margin-left: 8px;
  transition: transform 0.2s ease;
}
.custom-sel-wrap.open .custom-sel-display .arr {
  transform: rotate(180deg);
}
.custom-sel-popup {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 99999 !important;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
  min-width: 150px;
  max-height: 220px;
  overflow-y: auto;
  padding: 0.4rem;
}
.custom-sel-popup.open {
  display: block;
}
.custom-sel-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 400;
  color: #334155;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}
.custom-sel-opt:hover {
  background: var(--color-primary-hl, #e9f0ee);
  color: var(--color-primary, #1a3734);
}
.custom-sel-opt.is-selected {
  background: var(--color-primary-hl, #e9f0ee);
  color: var(--color-primary, #1a3734);
  font-weight: 600;
}