:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f0f5f7;
  background: #0b1420;
}

* { box-sizing: border-box; }

body { min-width: 320px; margin: 0; }

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 15% 48%, rgba(29, 105, 112, .18), transparent 31%),
    radial-gradient(circle at 85% 15%, rgba(44, 83, 115, .13), transparent 30%),
    #0b1420;
}

.site-header, .main-layout, .site-footer { width: min(1140px, calc(100% - 56px)); margin-inline: auto; }

.site-header { padding-block: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 13px; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.brand img { display: block; width: 48px; height: 48px; }
.header-caption { color: #91a6b5; font-size: 13px; font-weight: 600; letter-spacing: .04em; }

.main-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 438px);
  align-items: center;
  gap: clamp(44px, 8vw, 130px);
  padding-block: 56px 90px;
}

.intro { max-width: 540px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #76dfcc; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #58ddc4; box-shadow: 0 0 16px rgba(88, 221, 196, .75); }
h1 { max-width: 560px; margin: 0; font-size: clamp(43px, 5vw, 65px); line-height: 1.08; letter-spacing: -.055em; }
.intro-copy { max-width: 470px; margin: 25px 0 30px; color: #a8bac8; font-size: 17px; line-height: 1.65; }
.topics { display: flex; flex-wrap: wrap; gap: 9px; }
.topics span { padding: 8px 12px; border: 1px solid #284252; border-radius: 999px; color: #b5c7d1; background: rgba(27, 49, 64, .45); font-size: 12px; }

.login-card { overflow: hidden; border: 1px solid #284152; border-radius: 18px; background: #142332; box-shadow: 0 28px 70px rgba(0, 0, 0, .28); }
.card-topline { height: 4px; background: linear-gradient(90deg, #2ac6b3, #83efd1); }
.card-body { padding: 39px 42px 32px; }
.card-eyebrow { margin: 0 0 11px; color: #79e1ce; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
h2 { margin: 0; font-size: 32px; line-height: 1.2; letter-spacing: -.04em; }
.card-description { margin: 10px 0 30px; color: #9db1bf; font-size: 14px; line-height: 1.5; }
.fields { display: flex; flex-direction: column; }
label { margin-bottom: 9px; color: #dce8ed; font-size: 13px; font-weight: 650; }
input {
  width: 100%;
  height: 47px;
  margin-bottom: 24px;
  padding: 0 14px;
  border: 1px solid #365064;
  border-radius: 8px;
  outline: none;
  background: #0f1c2a;
  color: #f0f5f7;
  font: inherit;
  font-size: 15px;
}
input:hover { border-color: #568092; }
input:focus-visible { border-color: #55d8c1; box-shadow: 0 0 0 3px rgba(85, 216, 193, .16); }
.error-message { margin: -3px 0 19px; padding: 12px 13px; border: 1px solid #8d4b54; border-radius: 8px; background: #3c252e; color: #ffc7ca; font-size: 13px; line-height: 1.45; }
.error-message[hidden] { display: none; }
button {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: #67e2cc;
  color: #092228;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
button:hover { background: #8af0dc; }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 3px solid #b6f5e9; outline-offset: 3px; }
.card-note { margin: 21px 0 0; color: #738d9d; font-size: 12px; text-align: center; }
.site-footer { padding-bottom: 24px; color: #6d8494; font-size: 12px; }

@media (max-width: 800px) {
  .main-layout { grid-template-columns: 1fr; gap: 48px; padding-block: 45px 70px; }
  .intro { max-width: 650px; }
  .login-card { width: min(100%, 480px); }
}

@media (max-width: 520px) {
  .site-header, .main-layout, .site-footer { width: calc(100% - 36px); }
  .site-header { padding-block: 20px; }
  .brand { gap: 10px; font-size: 17px; }
  .brand img { width: 40px; height: 40px; }
  .header-caption { font-size: 11px; }
  .main-layout { gap: 38px; padding-block: 37px 58px; }
  h1 { font-size: clamp(39px, 12vw, 50px); }
  .intro-copy { margin-block: 18px 24px; font-size: 15px; }
  .card-body { padding: 31px 27px 27px; }
}
