/* ── Login Page ──────────────────────────────────────────────────── */

.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Brand side ────────────────────────────────────────────────────── */

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: clamp(40px, 6vw, 80px);
  background: linear-gradient(160deg, #0a1628 0%, #0f1f3d 45%, #1a3260 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.login-brand::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 30% 30%, rgba(30,95,194,0.22), transparent 70%);
  pointer-events: none;
}
.login-brand > * { position: relative; z-index: 1; }

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo { width: 36px; height: 36px; border-radius: 8px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.brand-name .accent { color: var(--gold-light); }

.brand-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #fff;
}
.brand-copy p { font-size: 15px; color: rgba(255,255,255,0.72); }

.brand-roles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.role-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
}
.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-blue   { background: var(--accent);  box-shadow: 0 0 6px var(--accent); }
.dot-amber  { background: var(--warning); box-shadow: 0 0 6px var(--warning); }
.dot-green  { background: var(--success); box-shadow: 0 0 6px var(--success); }
.dot-purple { background: #a78bfa;        box-shadow: 0 0 6px #a78bfa; }

/* ── Form side ─────────────────────────────────────────────────────── */

.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px);
}

.login-box {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-header h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}
.login-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }

.demo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.demo-row-3 { grid-template-columns: repeat(3, 1fr); }
.demo-hint { font-size: 11px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.demo-btn {
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.demo-btn:hover {
  background: var(--accent-soft);
  color: var(--ink);
  border-color: var(--accent);
}

/* ── Google Sign-In ──────────────────────────────────────────────── */

.google-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.btn-google:active { background: #f1f3f4; }

.google-status {
  font-size: 12px;
  min-height: 16px;
  margin: 0;
  text-align: center;
}

/* ── Divider ─────────────────────────────────────────────────────── */

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── Demo section ────────────────────────────────────────────────── */

.demo-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ── Login footer ────────────────────────────────────────────────── */

.login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--muted);
}
.login-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.login-footer a:hover { text-decoration: underline; }

.forgot-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
}
.forgot-link:hover { color: var(--ink); }

.forgot-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.forgot-header { display: flex; flex-direction: column; gap: 10px; }
.forgot-hint { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

.forgot-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.forgot-back:hover { text-decoration: underline; }

/* ── Register link (brand side) ──────────────────────────────────── */

.register-link {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-top: auto;
}
.register-link strong { color: var(--gold-light); }
.register-link:hover  { color: #fff; }

form { display: flex; flex-direction: column; gap: 16px; }

.feedback {
  font-size: 13px;
  min-height: 20px;
  text-align: center;
}

.credentials-hint {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 12px;
}
.credentials-hint strong {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.hint-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  color: var(--ink-soft);
}
.hint-grid span:nth-child(even) {
  color: var(--muted);
  font-family: monospace;
}
