:root {
  color-scheme: light;
  --purple: #5d5077;
  --teal: #30b09d;
  --navy: #111030;
  --white: #fff;
  --muted: #696779;
  --line: #dedce5;
  --surface: #f7f6f9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--navy);
  background: var(--white);
}

button, input { font: inherit; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(500px, 1.1fr);
  min-height: 100vh;
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(36px, 5vw, 76px);
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.brand-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(135deg, rgba(93, 80, 119, .8), transparent 52%),
    radial-gradient(circle at 12% 92%, rgba(48, 176, 157, .24), transparent 36%);
}

.brand-content, .brand-footer { position: relative; z-index: 1; }

.logo {
  width: min(230px, 70%);
  height: auto;
  margin-bottom: clamp(54px, 11vh, 110px);
}

.eyebrow, .section-tag {
  color: var(--teal);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.brand-panel h1 {
  max-width: 540px;
  margin: 14px 0 22px;
  color: var(--white);
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.brand-copy {
  max-width: 470px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 1.02rem;
  line-height: 1.7;
}

.brand-footer {
  margin: 50px 0 0;
  color: rgba(255, 255, 255, .48);
  font-size: .78rem;
}

.signal {
  position: absolute;
  border: 1px solid rgba(48, 176, 157, .2);
  border-radius: 50%;
}

.signal-one { width: 450px; height: 450px; right: -300px; top: 7%; }
.signal-two { width: 620px; height: 620px; right: -390px; top: -3%; }

.form-panel {
  display: grid;
  place-items: center;
  padding: 48px 7vw;
  background:
    linear-gradient(rgba(93, 80, 119, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 80, 119, .025) 1px, transparent 1px),
    var(--white);
  background-size: 28px 28px;
}

.login-card { width: min(100%, 440px); }

.login-card h2, .dashboard h1 {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.helper {
  margin: 0 0 38px;
  color: var(--muted);
  line-height: 1.6;
}

.alert {
  margin-bottom: 22px;
  padding: 13px 15px;
  border-left: 3px solid #b44747;
  background: #fff2f2;
  color: #772e2e;
  font-size: .9rem;
}
.alert.success{border-left-color:#248878;color:#176f62;background:#effaf7}.forgot-link,.auth-back{display:inline-block;margin-top:15px;color:var(--purple);font-size:.84rem;font-weight:700;text-decoration:none}.login-options{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:22px}.login-options .remember-option,.login-options .forgot-link{margin:0}.auth-back{margin-top:24px}

.field { margin-bottom: 23px; }

label {
  display: block;
  margin-bottom: 9px;
  font-size: .86rem;
  font-weight: 750;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.label-row span {
  color: #888694;
  font-size: .73rem;
}

input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
  color: var(--navy);
  background: var(--white);
  transition: border-color .16s, box-shadow .16s;
}

input:hover { border-color: #aaa5b5; }
input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(48, 176, 157, .14);
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: -5px 0 22px;
  color: var(--muted);
  cursor: pointer;
  font-size: .92rem;
}

.remember-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--purple);
}

button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  margin-top: 32px;
  padding: 0 20px;
  border: 1px solid var(--navy);
  border-radius: 5px;
  color: var(--white);
  background: var(--navy);
  font-weight: 750;
  cursor: pointer;
  transition: background .16s, border-color .16s, transform .16s;
}

button:hover { border-color: var(--purple); background: var(--purple); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 3px solid rgba(48, 176, 157, .5); outline-offset: 3px; }
button svg { width: 18px; height: 18px; }

.security-note {
  margin: 25px 0 0;
  color: #858391;
  font-size: .76rem;
  text-align: center;
}

.security-note svg {
  width: 14px;
  height: 14px;
  margin-right: 7px;
  color: var(--teal);
  vertical-align: -2px;
}

.dashboard-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--surface);
}

.dashboard {
  width: min(100%, 580px);
  padding: 52px;
  border-left: 5px solid var(--teal);
  background: var(--white);
  box-shadow: 0 16px 50px rgba(17, 16, 48, .09);
}

.dashboard-logo { width: 190px; margin-bottom: 42px; }
.dashboard p { color: var(--muted); line-height: 1.65; }
.logout-button { max-width: 220px; }

@media (max-width: 840px) {
  .auth-shell { grid-template-columns: 1fr; }
  .brand-panel {
    min-height: auto;
    padding: 32px 28px 38px;
  }
  .logo { width: 170px; margin-bottom: 42px; }
  .brand-panel h1 { font-size: 2.8rem; }
  .brand-copy { max-width: 580px; }
  .brand-footer { display: none; }
  .form-panel { min-height: 58vh; padding: 48px 28px 64px; }
}

@media (max-width: 430px) {
  .brand-panel h1 { font-size: 2.35rem; }
  .form-panel { padding-inline: 20px; }
  .dashboard { padding: 34px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
