:root {
  --bg: #060c18;
  --bg-soft: #0b1324;
  --panel: rgba(15, 26, 46, .76);
  --panel-strong: rgba(8, 15, 30, .88);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f0f4ff;
  --muted: #92a2c4;
  --muted-2: #667896;
  --brand: #6d5ef5;
  --brand-2: #9b5de5;
  --cyan: #38bdf8;
  --green: #22c55e;
  --danger: #fb7185;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 28px 90px rgba(0, 0, 0, .46);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(109, 94, 245, .28), transparent 32rem),
    radial-gradient(circle at 88% 18%, rgba(56, 189, 248, .13), transparent 28rem),
    radial-gradient(circle at 78% 94%, rgba(155, 93, 229, .16), transparent 30rem),
    var(--bg);
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-shell {
  width: min(100%, 1120px);
  min-height: min(760px, calc(100vh - 48px));
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.auth-hero,
.login-card {
  flex: 1;
  padding: 46px;
}

.auth-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  background:
    linear-gradient(135deg, rgba(109, 94, 245, .20), rgba(255, 255, 255, .025)),
    rgba(255, 255, 255, .02);
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-weight: 900;
  letter-spacing: -.06em;
  box-shadow: 0 14px 34px rgba(109, 94, 245, .32);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  line-height: 1;
  font-size: 16px;
  letter-spacing: -.03em;
}

.brand span {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #c7c2ff;
  background: rgba(109, 94, 245, .13);
  border: 1px solid rgba(109, 94, 245, .24);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow.compact {
  min-height: 28px;
  padding: 0 10px;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .11);
}

.hero-copy h1 {
  max-width: 560px;
  margin: 22px 0 16px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: .98;
  letter-spacing: -.07em;
}

.hero-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.security-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.security-card {
  flex: 1 1 130px;
  min-height: 94px;
  padding: 17px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
}

.security-card strong,
.security-card span {
  display: block;
}

.security-card strong {
  font-size: 18px;
  letter-spacing: -.035em;
}

.security-card span {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 12px;
}

.login-card {
  max-width: 454px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--panel-strong);
  border-left: 1px solid var(--line);
}

.login-head h2 {
  margin: 14px 0 6px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.05em;
}

.login-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

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

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, .045);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field input::placeholder {
  color: rgba(146, 162, 196, .62);
}

.field input:focus {
  border-color: var(--brand);
  background: rgba(255, 255, 255, .065);
  box-shadow: 0 0 0 4px rgba(109, 94, 245, .22);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.form-row a {
  color: #c7c2ff;
  font-weight: 700;
}

.form-row a:hover {
  color: white;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.submit-btn {
  height: 50px;
  border: 0;
  border-radius: var(--radius-md);
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(109, 94, 245, .34);
  transition: transform .18s ease, filter .18s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.submit-btn:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.login-footer p {
  margin: 0 0 10px;
  color: var(--muted-2);
  font-size: 12px;
}

.login-footer a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.login-footer a:hover {
  color: white;
}

@media (max-width: 900px) {
  .auth-page {
    padding: 16px;
  }

  .auth-shell {
    flex-direction: column;
    min-height: auto;
  }

  .auth-hero,
  .login-card {
    max-width: none;
    padding: 32px 26px;
  }

  .login-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .auth-page {
    align-items: stretch;
    padding: 0;
  }

  .auth-shell {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .auth-hero {
    display: none;
  }

  .login-card {
    justify-content: center;
    min-height: 100vh;
    padding: 26px 20px;
  }

  .form-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
