/* ============================================================
   NEMSU Cagwait — Department Head Portal Login (admin/index.php)
   Extracted from inline <style>. Edit here, not in index.php.
   ============================================================ */
:root {
  --brand-ink: #0f2f30;
  --brand-accent: #146c74;
  --brand-accent-soft: #d9eff0;
  --surface: #fbfdfd;
  --surface-card: #ffffff;
  --text-main: #102a2d;
  --text-subtle: #5f7477;
  --danger: #b42318;
  --success: #087443;
  --hero-gradient: linear-gradient(160deg, #0f2f30, #1a555a);
  --button-gradient: linear-gradient(140deg, #146c74 0%, #0f5258 100%);
  --button-shadow: 0 10px 22px rgba(20, 108, 116, 0.26);
  --focus-glow: 0 0 0 4px rgba(20, 108, 116, 0.16);
  --hero-text-soft: #c8f0f2;
  --hero-panel-border: #1f696f;
}

body[data-portal-theme='hr'] {
  --hero-gradient: linear-gradient(160deg, #4f1f60, #7f2946);
  --button-gradient: linear-gradient(140deg, #9c2c64 0%, #6f215f 100%);
  --button-shadow: 0 10px 22px rgba(127, 41, 70, 0.28);
  --focus-glow: 0 0 0 4px rgba(156, 44, 100, 0.16);
  --hero-text-soft: #f6d3e3;
  --hero-panel-border: #9f4270;
}

body[data-portal-theme='bsit'] {
  --hero-gradient: linear-gradient(160deg, #2a2f36, #4f5965);
  --button-gradient: linear-gradient(140deg, #3d4651 0%, #2d333c 100%);
  --button-shadow: 0 10px 22px rgba(45, 51, 60, 0.3);
  --focus-glow: 0 0 0 4px rgba(79, 89, 101, 0.22);
  --hero-text-soft: #d9e0e8;
  --hero-panel-border: #5d6875;
}

body[data-portal-theme='bshm'] {
  --hero-gradient: linear-gradient(160deg, #800000, #cf9c1f);
  --button-gradient: linear-gradient(140deg, #800000 0%, #b78512 100%);
  --button-shadow: 0 10px 22px rgba(128, 0, 0, 0.3);
  --focus-glow: 0 0 0 4px rgba(183, 133, 18, 0.2);
  --hero-text-soft: #ffeec5;
  --hero-panel-border: #b78512;
}

body[data-portal-theme='automotive'] {
  --hero-gradient: linear-gradient(160deg, #1f252c, #ff8a00);
  --button-gradient: linear-gradient(140deg, #2a3139 0%, #f07b00 100%);
  --button-shadow: 0 10px 22px rgba(31, 37, 44, 0.34);
  --focus-glow: 0 0 0 4px rgba(255, 138, 0, 0.23);
  --hero-text-soft: #ffe8cc;
  --hero-panel-border: #ff8a00;
}

body {
  font-family: 'Manrope', sans-serif;
  background: radial-gradient(circle at 12% 20%, #e9f7f7 0%, #f8fbfb 45%, #eef4f5 100%);
  color: var(--text-main);
}

.auth-title {
  font-family: 'Sora', sans-serif;
  letter-spacing: 0.01em;
}

.glass-card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid #e2eded;
  box-shadow: 0 18px 36px rgba(12, 52, 56, 0.12);
}

.field-label {
  color: var(--text-subtle);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.38rem;
  display: block;
}

.field-input {
  width: 100%;
  border: 1px solid #d4e3e4;
  border-radius: 0.8rem;
  background: var(--surface-card);
  color: var(--text-main);
  padding: 0.75rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.field-input:focus {
  border-color: #84b6bb;
  box-shadow: var(--focus-glow);
}

.login-btn {
  width: 100%;
  border: none;
  border-radius: 0.8rem;
  background: var(--button-gradient);
  color: #ffffff;
  font-weight: 700;
  padding: 0.78rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--button-shadow);
  cursor: pointer;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(20, 108, 116, 0.3);
}

.toggle-password {
  position: absolute;
  right: 0.8rem;
  top: 2.25rem;
  color: #6b7f82;
  cursor: pointer;
}

.toast {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.auth-side-panel {
  background: var(--hero-gradient);
  border-right: 1px solid var(--hero-panel-border);
  transition: background 0.32s ease;
}

.hero-soft-text {
  color: var(--hero-text-soft);
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border-radius: 999px;
  padding: 0.22rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.25s ease;
  border: 1px solid #d5e8ea;
  color: #376166;
  background: #eef8f8;
}

body[data-portal-theme='hr'] .mode-pill {
  border-color: #e6bfd1;
  color: #7b2f4f;
  background: #faedf2;
}

body[data-portal-theme='bsit'] .mode-pill {
  border-color: #c9d3df;
  color: #37414d;
  background: #edf2f7;
}

body[data-portal-theme='bshm'] .mode-pill {
  border-color: #e2bf57;
  color: #800000;
  background: #fff5dc;
}

body[data-portal-theme='automotive'] .mode-pill {
  border-color: #f0b17e;
  color: #7a3f11;
  background: #fff1e4;
}
