:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  --navy: #101d35;
  --navy-light: #192b49;
  --yellow: #f5c842;
  --text: #f4f7fc;
  --muted: #a9b8ce;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--text);
}

button, input { font: inherit; }

.page {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100vh;
}

.intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px clamp(32px, 6vw, 110px);
  background:
    radial-gradient(circle at 90% 80%, #244774 0%, transparent 45%),
    linear-gradient(145deg, #101d35, #162b4d);
}

.brand { display: flex; align-items: center; gap: 16px; }

.brand-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--yellow);
  border-radius: 14px;
  color: var(--navy);
  font-size: 30px;
  font-weight: 900;
}

.brand-name { font-size: 27px; font-weight: 800; letter-spacing: -1px; }
.brand-name span, .mobile-brand span { color: var(--yellow); }
.brand-subtitle { margin-top: 4px; color: var(--muted); font-size: 12px; }

.eyebrow, .login-eyebrow {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.intro-content h1 {
  margin: 22px 0;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.12;
  letter-spacing: -2px;
}

.intro-content h1 span { color: var(--yellow); }

.intro-content p {
  max-width: 520px;
  color: #c3cee0;
  line-height: 1.8;
  font-size: 16px;
}

.features { display: grid; gap: 17px; margin-top: 40px; }
.features > div { display: flex; align-items: center; gap: 12px; color: #d7e0ef; }
.feature-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.intro-footer { color: #8195b3; font-size: 12px; }

.login-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 38px;
  padding: 40px 28px;
  background: #111b2d;
}

.login-card { width: min(100%, 420px); }
.mobile-brand { display: none; }

.login-card h2 {
  margin: 17px 0 12px;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -1px;
}

.login-description { margin-bottom: 34px; color: var(--muted); line-height: 1.7; }

form { display: flex; flex-direction: column; }
label { margin-bottom: 10px; font-size: 13px; font-weight: 650; }

input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #354762;
  border-radius: 10px;
  background: #1b2a42;
  color: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

input::placeholder { color: #7e90aa; }
input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px #f5c84224; }
input:disabled { opacity: .65; }
#email { margin-bottom: 25px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 94px; }

.password-toggle {
  position: absolute;
  right: 8px;
  top: 7px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--yellow);
  cursor: pointer;
  font-size: 12px;
}

.submit-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 54px;
  margin-top: 30px;
  border: 0;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  transition: filter .2s;
}

.submit-button:hover { filter: brightness(1.07); }
.submit-button:disabled { opacity: .65; cursor: wait; }

.error {
  margin-top: 18px;
  padding: 13px;
  border: 1px solid #b74b59;
  border-radius: 9px;
  background: #542331;
  color: #ffe0e4;
  font-size: 13px;
  line-height: 1.5;
}

.security-note {
  margin-top: 26px;
  color: #8497b1;
  text-align: center;
  font-size: 12px;
}
.security-note span { color: #64cba0; }
.login-footer { color: #788ba5; text-align: center; font-size: 12px; }

@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; }
  .intro { display: none; }
  .login-area { min-height: 100vh; }
  .mobile-brand { display: block; margin-bottom: 45px; font-size: 26px; font-weight: 800; }
}

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