@font-face {
  font-family: Inter;
  src: url("InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #031028;
  --surface: rgba(12, 33, 58, .94);
  --ink: #f6f8ff;
  --muted: #a9bed8;
  --quiet: #7892b2;
  --outline: rgba(91, 154, 221, .48);
  --blue: #128dff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; }
button, input { font: inherit; }

.auth-page {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse 60% 55% at 5% 6%, rgba(8, 60, 128, .38), transparent 75%),
    radial-gradient(ellipse 52% 60% at 97% 89%, rgba(2, 48, 105, .27), transparent 80%),
    linear-gradient(145deg, #04142e 0%, var(--background) 72%);
  position: relative;
}

.auth-wave {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 480px;
  left: 0;
  top: 255px;
  opacity: .8;
  background: url("auth-wave.svg") center top / 100% 100% no-repeat;
  mask-image: linear-gradient(#000 0%, #000 72%, transparent 100%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1800px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 56px clamp(36px, 5.7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, min(44vw, 660px));
  gap: clamp(42px, 5vw, 100px);
  align-items: center;
}

.auth-intro { align-self: stretch; padding-top: clamp(20px, 4vh, 54px); }
.brand { display: flex; align-items: center; gap: 16px; width: max-content; }
.brand img { display: block; width: 110px; height: 110px; object-fit: contain; }
.brand span { font-size: clamp(43px, 3.7vw, 62px); font-weight: 650; letter-spacing: -.055em; line-height: 1; }
.hero { margin: clamp(70px, 9vh, 110px) 0 0; font-size: clamp(42px, 4.1vw, 70px); font-weight: 720; letter-spacing: -.048em; line-height: 1.13; }
.hero span { display: block; color: var(--blue); }

.auth-card {
  width: 100%;
  border: 1px solid rgba(48, 115, 192, .76);
  border-radius: 24px;
  padding: clamp(42px, 4.2vw, 76px);
  background: linear-gradient(145deg, rgba(18, 41, 70, .96), var(--surface) 64%, rgba(8, 28, 50, .96));
  box-shadow: 0 24px 90px rgba(0, 5, 20, .12);
}

.auth-card h1 { margin: 0 0 48px; font-size: clamp(36px, 3.2vw, 52px); line-height: 1.1; font-weight: 730; letter-spacing: -.04em; }
.auth-card .description { margin: -29px 0 34px; color: var(--muted); font-size: 19px; line-height: 1.45; }
.auth-form { display: grid; gap: 28px; }
.form-field { display: grid; gap: 10px; }
.form-field label { font-size: 18px; line-height: 1.3; }
.input-wrap { position: relative; }
.form-field input {
  display: block;
  width: 100%;
  height: 60px;
  border: 1px solid rgba(126, 166, 212, .7);
  border-radius: 11px;
  outline: 0;
  padding: 0 24px;
  color: var(--ink);
  background: rgba(3, 19, 39, .23);
  font-size: 18px;
}
.form-field input::placeholder { color: var(--quiet); opacity: 1; }
.form-field input:focus-visible { border-color: #54b9ff; box-shadow: 0 0 0 3px rgba(18, 141, 255, .2); }
.input-wrap.has-icon input { padding-right: 64px; }
.input-icon { position: absolute; top: 50%; right: 22px; width: 23px; height: 23px; transform: translateY(-50%); color: #b9d0ec; }
.input-icon svg { display: block; width: 100%; height: 100%; }
.readonly input { color: var(--quiet); }
.form-link { justify-self: end; color: #25a7ff; text-decoration: none; font-size: 17px; }
.form-link[type="button"] { border: 0; padding: 0; background: none; cursor: pointer; }
.form-link:hover, .footer-link:hover { text-decoration: underline; }
.form-notice { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.primary-button {
  width: 100%;
  min-height: 68px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: linear-gradient(180deg, #0b96e7, #0871fa);
  font-size: 22px;
  font-weight: 700;
  cursor: default;
}
.card-footer { display: flex; align-items: center; gap: 22px; color: var(--quiet); white-space: nowrap; margin-top: 43px; font-size: 16px; }
.card-footer::before, .card-footer::after { content: ""; height: 1px; background: rgba(130, 169, 211, .36); flex: 1; }
.footer-link { color: #25a7ff; text-decoration: none; }
.invite-page .auth-form { gap: 20px; }
.invite-page .auth-card h1 { margin-bottom: 42px; }
.invite-page .primary-button { margin-top: 7px; }
.invite-page .card-footer { margin-top: 31px; }

@media (min-width: 1101px) {
  .invite-page .auth-card { padding: 52px 64px; }
  .invite-page .auth-card h1 { font-size: clamp(34px, 2.75vw, 46px); margin-bottom: 35px; }
  .invite-page .auth-card .description { margin: -20px 0 28px; font-size: 18px; }
  .invite-page .auth-form { gap: 17px; }
  .invite-page .form-field { gap: 8px; }
  .invite-page .form-field input { height: 56px; }
  .invite-page .primary-button { min-height: 60px; margin-top: 5px; }
  .invite-page .card-footer { margin-top: 25px; }
}

@media (max-width: 1100px) {
  .auth-shell { display: flex; flex-direction: column; justify-content: center; padding: 38px 36px 46px; gap: 24px; }
  .auth-intro { align-self: center; padding: 0; text-align: center; }
  .brand { margin: 0 auto; }
  .brand img { width: 70px; height: 70px; }
  .brand span { font-size: 45px; }
  .hero { margin-top: 18px; font-size: clamp(35px, 5.5vw, 51px); }
  .auth-card { width: min(100%, 670px); padding: 32px 48px; }
  .auth-card h1 { font-size: 38px; margin-bottom: 25px; }
  .auth-card .description { margin: -15px 0 20px; font-size: 17px; }
  .auth-form { gap: 18px; }
  .form-field label { font-size: 16px; }
  .form-field input { height: 50px; }
  .primary-button { min-height: 54px; }
  .card-footer { margin-top: 25px; font-size: 14px; }
  .invite-page .auth-form { gap: 12px; }
  .invite-page .auth-card { padding-top: 30px; padding-bottom: 30px; }
  .invite-page .auth-card h1 { margin-bottom: 24px; }
  .invite-page .card-footer { margin-top: 22px; }
  .auth-wave { top: 0; bottom: auto; height: 430px; opacity: .58; background-position: center top; mask-image: linear-gradient(#000 0%, #000 32%, transparent 100%); }
}

@media (max-width: 600px) {
  .auth-shell { justify-content: flex-start; padding: 37px 18px 56px; gap: 29px; }
  .brand { gap: 10px; }
  .brand img { width: 60px; height: 60px; }
  .brand span { font-size: 37px; }
  .hero { margin-top: 28px; font-size: clamp(25px, 7.6vw, 34px); line-height: 1.16; }
  .auth-card { border-radius: 17px; padding: 28px 27px 28px; }
  .auth-card h1 { font-size: 31px; margin-bottom: 28px; }
  .auth-card .description { margin: -20px 0 29px; font-size: 15px; }
  .auth-form { gap: 18px; }
  .form-field { gap: 8px; }
  .form-field label { font-size: 14px; }
  .form-field input { height: 44px; border-radius: 8px; padding: 0 14px; font-size: 15px; }
  .input-wrap.has-icon input { padding-right: 46px; }
  .input-icon { width: 20px; height: 20px; right: 14px; }
  .form-link { font-size: 14px; }
  .primary-button { min-height: 50px; border-radius: 8px; font-size: 19px; }
  .card-footer { gap: 10px; font-size: 12px; margin-top: 24px; }
  .invite-page .auth-shell { gap: 18px; }
  .invite-page .hero { margin-top: 12px; font-size: clamp(22px, 6.4vw, 27px); line-height: 1.12; }
  .invite-page .auth-card { padding: 24px 25px 26px; }
  .invite-page .auth-card h1 { margin-bottom: 20px; font-size: 31px; }
  .invite-page .auth-card .description { margin: -13px 0 14px; }
  .invite-page .auth-form { gap: 12px; }
  .invite-page .primary-button { margin-top: 2px; }
  .invite-page .card-footer { margin-top: 18px; }
  .auth-wave { height: 320px; opacity: .54; }
}
