:root {
  --login-primary: #4f46e5;
  --login-text: #172033;
  --login-muted: #6b7280;
}
html, body { min-height: 100%; }
body.login-page-modern {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(6,182,212,.18), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(99,102,241,.22), transparent 35%),
    #f5f7fb;
  color: var(--login-text);
}
.login-shell {
  width: min(1040px, calc(100% - 32px));
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(30,41,59,.16);
}
.login-visual {
  position: relative;
  padding: 42px 46px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 8%, rgba(34,211,238,.28), transparent 28%),
    radial-gradient(circle at 5% 92%, rgba(167,139,250,.3), transparent 30%),
    linear-gradient(145deg, #312e81, #4f46e5 58%, #4338ca);
}
.login-visual::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -100px;
  bottom: -100px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255,255,255,.035), 0 0 0 90px rgba(255,255,255,.025);
  pointer-events: none;
}
.login-brand, .service-preview, .login-copy { position: relative; z-index: 1; }
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
}
.login-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.login-brand > span:last-child { display: flex; flex-direction: column; }
.login-brand small { margin-top: 2px; color: rgba(255,255,255,.58); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.service-preview {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 20px 45px rgba(15,23,42,.22);
  backdrop-filter: blur(16px);
}
.preview-head { margin-bottom: 17px; display: flex; align-items: center; justify-content: space-between; }
.preview-head > div { display: flex; flex-direction: column; }
.preview-kicker { margin-bottom: 3px; color: rgba(255,255,255,.58); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.preview-head strong { font-size: 17px; }
.preview-live { padding: 5px 9px; border-radius: 999px; background: rgba(15,23,42,.18); font-size: 10px; }
.preview-live i { width: 6px; height: 6px; margin-right: 5px; display: inline-block; border-radius: 50%; background: #5ee7a7; box-shadow: 0 0 0 3px rgba(94,231,167,.15); }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.preview-stats > div { padding: 11px 8px; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; align-items: center; border-radius: 13px; background: rgba(255,255,255,.1); }
.preview-stat-icon { grid-row: 1 / 3; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; font-size: 11px; }
.stat-new { color: #c4b5fd; background: rgba(196,181,253,.14); }
.stat-doing { color: #fcd34d; background: rgba(252,211,77,.14); }
.stat-done { color: #6ee7b7; background: rgba(110,231,183,.14); }
.preview-stats strong { font-size: 18px; line-height: 1; }
.preview-stats small { margin-top: 3px; color: rgba(255,255,255,.6); font-size: 9px; white-space: nowrap; }
.preview-task { margin-top: 10px; padding: 11px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; border-radius: 13px; background: rgba(15,23,42,.2); }
.task-icon { width: 32px; height: 32px; display: grid; place-items: center; color: #fcd34d; border-radius: 9px; background: rgba(252,211,77,.12); }
.preview-task > span:nth-child(2) { min-width: 0; }
.preview-task strong, .preview-task small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-task strong { font-size: 11px; }.preview-task small { margin-top: 3px; color: rgba(255,255,255,.55); font-size: 9px; }
.task-status { padding: 5px 7px; color: #fde68a; border-radius: 999px; background: rgba(245,158,11,.15); font-size: 8px; white-space: nowrap; }
.login-copy { margin-top: auto; }
.login-copy h1 { max-width: 440px; margin: 0 0 11px; font-size: 34px; line-height: 1.14; font-weight: 700; }
.login-copy p { max-width: 420px; margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.7; }
.login-copy p .glyphicon { margin-right: 5px; color: #6ee7b7; }
.login-panel {
  padding: 64px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-panel-header { margin-bottom: 34px; }
.login-eyebrow { margin-bottom: 9px; color: var(--login-primary); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.login-panel h2 { margin: 0 0 10px; font-size: 32px; font-weight: 700; letter-spacing: -.025em; }
.login-subtitle { margin: 0; color: var(--login-muted); font-size: 15px; }
.login-field { margin-bottom: 20px; }
.login-field label { display: block; margin-bottom: 8px; color: #374151; font-size: 14px; font-weight: 600; }
.login-input-wrap { position: relative; }
.login-input-wrap .glyphicon {
  position: absolute;
  left: 16px;
  top: 50%;
  color: #9ca3af;
  transform: translateY(-50%);
}
.login-input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 44px;
  border: 1px solid #d9dee8;
  border-radius: 12px;
  outline: none;
  transition: .18s ease;
}
.login-input:focus { border-color: #818cf8; box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.login-submit {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(120deg, var(--login-primary), #6366f1);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(79,70,229,.24);
  transition: transform .15s ease, box-shadow .15s ease;
}
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(79,70,229,.3); }
.login-footer { margin-top: 28px; color: #9ca3af; font-size: 12px; text-align: center; }
@media (max-width: 800px) {
  body.login-page-modern { padding: 18px 0; }
  .login-shell { grid-template-columns: 1fr; min-height: 0; }
  .login-visual { min-height: 230px; padding: 30px; }
  .service-preview { display: none; }
  .login-copy h1 { font-size: 30px; }
  .login-copy p { font-size: 14px; }
  .login-panel { padding: 42px 30px; }
}
@media (max-width: 480px) {
  .login-visual { min-height: 210px; }
  .login-copy p { display: none; }
  .login-panel { padding: 34px 22px; }
  .login-panel h2 { font-size: 27px; }
}
