:root {
  --ink: #0f1923;
  --ink2: #2c3e50;
  --muted: #7a8a99;
  --line: #dde3ea;
  --bg: #f4f6f8;
  --white: #ffffff;
  --accent: #1a4fd6;
  --accent-light: #e8eeff;
  --accent2: #0ea47a;
  --danger: #c0392b;
  --danger-light: #fdf0ef;
  --mono: 'DM Mono', monospace;
  --serif: 'DM Serif Display', serif;
  --sans: 'DM Sans', sans-serif;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15,25,35,.08), 0 4px 16px rgba(15,25,35,.06);
  --shadow-lg: 0 8px 32px rgba(15,25,35,.12), 0 2px 8px rgba(15,25,35,.06);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.login-left {
  width: 480px; flex-shrink: 0;
  background: var(--ink);
  padding: 80px 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
}
.login-left::after {
  content: '';
  position: absolute; bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.04);
}
.login-brand { position: relative; z-index: 1; }
.login-brand-name {
  font-family: var(--serif); font-size: 26px; color: #fff;
  letter-spacing: -0.5px; margin-bottom: 6px;
}
.login-brand-sub { font-size: 13px; color: #7a8a99; font-weight: 300; letter-spacing: .5px; }
.login-tagline { position: relative; z-index: 1; }
.login-tagline h2 {
  font-family: var(--serif); font-size: 38px; color: #fff;
  line-height: 1.2; font-weight: 400; margin-bottom: 16px;
}
.login-tagline h2 em { color: #6b9fff; font-style: italic; }
.login-tagline p { font-size: 14px; color: #7a8a99; line-height: 1.7; font-weight: 300; }
.login-footer-note { font-size: 11px; color: #3a4a5a; font-family: var(--mono); position: relative; z-index: 1; }
.login-right {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  padding: 80px 64px;
}
.login-form-box { width: 100%; max-width: 380px; }
.login-form-box h3 { font-family: var(--serif); font-size: 28px; color: var(--ink); margin-bottom: 6px; font-weight: 400; }
.login-form-box > p { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink2); margin-bottom: 6px; letter-spacing: .3px; text-transform: uppercase; }
.form-input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  outline: none; transition: border-color .2s;
  background: var(--white);
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: #b0bdc8; }
.totp-row { display: flex; gap: 8px; }
.totp-input {
  width: 48px; height: 52px; text-align: center;
  border: 1.5px solid var(--line); border-radius: 8px;
  font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--ink);
  outline: none; transition: border-color .2s;
}
.totp-input:focus { border-color: var(--accent); }
.totp-label { font-size: 12px; font-weight: 600; color: var(--ink2); margin-bottom: 10px; letter-spacing: .3px; text-transform: uppercase; display: block; }
.btn-login {
  width: 100%; padding: 14px;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius);
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .2s; margin-top: 8px;
  letter-spacing: .2px;
}
.btn-login:hover { background: #1240b8; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,79,214,.3); }
.security-badge {
  display: flex; align-items: center; gap: 8px;
  margin-top: 24px; padding: 10px 14px;
  background: var(--bg); border-radius: 8px;
  font-size: 12px; color: var(--muted);
}
.security-badge svg { flex-shrink: 0; }
.error-box {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; margin-bottom: 20px;
  background: var(--danger-light);
  border: 1px solid #f0c0bb;
  border-radius: 8px;
  font-size: 13px; color: var(--danger); line-height: 1.4;
}
.mfa-back {
  display: inline-block; margin-top: 16px;
  font-size: 13px; color: var(--muted); text-decoration: none;
}
.mfa-back:hover { color: var(--accent); }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadein .3s ease both; }
.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--muted); font-size: 12px;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 16px;
  background: var(--white); color: var(--ink2);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.btn-google:hover {
  border-color: #aab4be;
  box-shadow: 0 2px 8px rgba(15,25,35,.08);
  transform: translateY(-1px);
}

/* ── BRANDING LOGO ── */
.login-brand-logo { max-height: 48px; max-width: 220px; display: block; object-fit: contain; }