:root {
  --bg-top: #050d1c;
  --bg-bottom: #0a1730;
  --panel: rgba(15, 35, 66, 0.5);
  --line: #254870;
  --text: #f4f8ff;
  --soft: #b9cef0;
  --blue: #3f7fe4;
  --blue-dark: #2a61bf;
  --blue-soft: #1d3f73;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #3f7fe4 transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3f7fe4, #2a61bf);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

html,
body {
  scrollbar-width: thin;
  scrollbar-color: #3f7fe4 transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3f7fe4, #2a61bf);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgb(26 52 99 / 45%), rgba(8, 18, 36, 0.7)),
    url("./assets/bg2.png") center top / cover no-repeat fixed;
}

.screen {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 22px 14px 30px;
  display: grid;
  gap: 14px;
}

.hero-card,
.login-card {
  background:
    linear-gradient(160deg, rgba(33, 70, 118, 0.32), rgba(16, 35, 64, 0.35)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(173, 210, 255, 0.2),
    inset 0 -1px 0 rgba(8, 19, 36, 0.65);
}

.hero-card::before,
.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(175, 214, 255, 0.08), rgba(0, 0, 0, 0) 25%);
}

.hero-card {
  padding: 24px 16px;
}

.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #d4e6ff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 0;
  font-size: 31px;
  line-height: 1.05;
}

.hero-sub {
  margin: 10px 0 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.45;
}

.login-card {
  padding: 20px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.card-top h2 {
  margin: 0;
  font-size: 24px;
}

.card-top p {
  margin: 4px 0 0;
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
}

form {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 700;
}

input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #446fa9;
  background: #16345f;
  color: #eef4ff;
  padding: 13px 12px;
  font-size: 14px;
  font-family: inherit;
}

input::placeholder {
  color: #a9c0e8;
}

input:focus {
  outline: 2px solid #6aa3ff;
  outline-offset: 1px;
}

.meta-row {
  margin: 2px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
}

.remember input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--blue);
}

a {
  color: #bcd3ff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.role-ctas {
  display: grid;
  gap: 10px;
}

.role-ctas a {
  display: block;
  text-align: center;
  border-radius: 8px;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.role-ctas button {
  width: 100%;
  display: block;
  text-align: center;
  border-radius: 8px;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
}

.primary {
  color: #fff;
  background: linear-gradient(180deg, #5ca0ff, #3476de 58%, #2b64c0);
  border: 1px solid #4d84dc;
  box-shadow:
    inset 0 1px 0 rgba(202, 227, 255, 0.2),
    0 7px 12px rgba(8, 22, 44, 0.4);
}

button.primary {
  cursor: pointer;
}

button.primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

button.ghost {
  cursor: pointer;
}

button.ghost:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ghost {
  color: #d6e4ff;
  background: linear-gradient(180deg, #2c5a97, #1e4578);
  border: 1px solid #35629c;
  box-shadow:
    inset 0 1px 0 rgba(202, 227, 255, 0.14),
    0 7px 12px rgba(8, 22, 44, 0.35);
}

.signup-row {
  margin: 12px 0 2px;
  text-align: center;
  font-size: 12px;
  color: var(--soft);
  font-weight: 600;
}

.login-feedback {
  margin: 2px 0 0;
  min-height: 18px;
  font-size: 12px;
  color: #ffd4d9;
  font-weight: 600;
}

.login-feedback.success {
  color: #b9f7d8;
}

.micro-copy {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 100%;
  background: #5e8cd4;
}

@media (min-width: 760px) {
  .screen {
    width: min(100%, 920px);
    min-height: 100dvh;
    align-content: center;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 24px;
  }

  .hero-card,
  .login-card {
    min-height: 460px;
    padding: 26px;
  }

  .micro-copy {
    grid-column: 1 / -1;
  }
}
