@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: clamp(0px, calc(100svh - 255px), 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%, 1460px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 48px clamp(32px, 4.5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 480px);
  gap: clamp(48px, 5vw, 80px);
  align-items: center;
}

.auth-intro { align-self: stretch; padding-top: clamp(20px, 4vh, 48px); }
.brand { display: flex; align-items: center; gap: 12px; width: max-content; }
.brand img { display: block; width: 96px; height: 96px; object-fit: contain; }
.brand span { font-size: clamp(43px, 2.8vw, 50px); font-weight: 620; letter-spacing: normal; line-height: 1; }
.hero { margin: clamp(50px, 7vh, 72px) 0 0; font-size: clamp(44px, 3.4vw, 64px); font-weight: 620; letter-spacing: normal; line-height: 1.18; }
.hero span { display: block; color: var(--blue); }

.auth-card {
  width: 100%;
  border: 1px solid rgba(48, 115, 192, .76);
  border-radius: 18px;
  padding: clamp(34px, 3vw, 42px);
  background: linear-gradient(145deg, #122946, #0c213a 64%, #081c32);
  box-shadow: 0 24px 90px rgba(0, 5, 20, .12);
}

.auth-card h1 { margin: 0 0 28px; font-size: 32px; line-height: 1.15; font-weight: 650; letter-spacing: normal; }
.company-context { margin: -8px 0 20px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.company-label { color: var(--muted); }
.company-name { color: #d5e0f0; font-weight: 500; }
.auth-form { display: grid; gap: 18px; }
.name-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.name-row .form-field { min-width: 0; }
.form-field { display: grid; gap: 8px; }
.form-field label { font-size: 15px; line-height: 1.3; }
.input-wrap { position: relative; }
.form-field input {
  display: block;
  width: 100%;
  height: 48px;
  border: 1px solid rgba(126, 166, 212, .7);
  border-radius: 8px;
  outline: 0;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(3, 19, 39, .23);
  font-size: 15px;
}
.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: 48px; }
.input-icon { position: absolute; top: 50%; right: 16px; width: 20px; height: 20px; transform: translateY(-50%); color: #b9d0ec; }
.input-icon svg { display: block; width: 100%; height: 100%; }
.readonly input { color: var(--muted); border-color: rgba(126, 166, 212, .44); background: rgba(3, 19, 39, .16); }
.form-link { justify-self: end; color: #25a7ff; text-decoration: none; font-size: 15px; }
.form-link:hover, .footer-link:hover { text-decoration: underline; }
.primary-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: linear-gradient(180deg, #0b96e7, #0871fa);
  font-size: 18px;
  font-weight: 650;
  cursor: default;
}
.card-footer { display: flex; align-items: center; justify-content: center; color: var(--muted); text-align: center; margin-top: 24px; font-size: 14px; }
.footer-link { color: #25a7ff; text-decoration: none; }
.invite-page .auth-form { gap: 13px; }
.invite-page .auth-card h1 { margin-bottom: 28px; }
.invite-page .primary-button { margin-top: 5px; }
.invite-page .card-footer { margin-top: 22px; }

@media (min-width: 1101px) {
  .invite-page .auth-card { padding: 34px 42px; }
  .invite-page .auth-card h1 { font-size: 32px; margin-bottom: 28px; }
}

@media (max-width: 1100px) {
  .auth-shell { display: flex; flex-direction: column; justify-content: flex-start; padding: clamp(44px, 11.3vh, 116px) 36px 46px; gap: 22px; }
  .auth-intro { align-self: center; padding: 0; text-align: center; }
  .brand { margin: 0 auto; }
  .brand img { width: 72px; height: 72px; }
  .brand span { font-size: 42px; }
  .hero { margin-top: 18px; font-size: clamp(36px, 5.1vw, 46px); }
  .auth-card { width: min(100%, 480px); padding: 30px 34px; }
  .auth-card h1 { font-size: 30px; margin-bottom: 24px; }
  .company-context { margin: -8px 0 18px; }
  .auth-form { gap: 16px; }
  .form-field label { font-size: 14px; }
  .form-field input { height: 44px; font-size: 16px; }
  .form-field input::placeholder { font-size: 14px; }
  .readonly input { font-size: 14px; }
  .primary-button { min-height: 48px; font-size: 17px; }
  .card-footer { margin-top: 20px; font-size: 13px; }
  .invite-page .auth-form { gap: 16px; }
  .invite-page .auth-card { padding: 30px 34px; }
  .invite-page .auth-card h1 { margin-bottom: 24px; }
  .invite-page .card-footer { margin-top: 20px; }
  .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: 24px 16px 32px; gap: 20px; }
  .brand { gap: 8px; }
  .brand img { width: 52px; height: 52px; }
  .brand span { font-size: 31px; }
  .hero { margin-top: 20px; font-size: clamp(22px, 6.3vw, 26px); line-height: 1.2; }
  .auth-card { width: min(100%, 304px); border-radius: 14px; padding: 20px; }
  .auth-card h1 { font-size: 23px; margin-bottom: 18px; }
  .company-context { margin: -7px 0 12px; font-size: 12px; }
  .auth-form { gap: 14px; }
  .name-row { gap: 8px; }
  .form-field { gap: 6px; }
  .form-field label { font-size: 12px; }
  .form-field input { height: 42px; border-radius: 7px; padding: 0 12px; font-size: 16px; }
  .form-field input::placeholder { font-size: 12px; }
  .readonly input { font-size: 13px; }
  .name-row input { padding-inline: 8px; }
  .input-wrap.has-icon input { padding-right: 38px; }
  .input-icon { width: 18px; height: 18px; right: 12px; }
  .form-link { font-size: 13px; }
  .primary-button { min-height: 44px; border-radius: 7px; font-size: 15px; }
  .card-footer { font-size: 12px; margin-top: 16px; }
  .invite-page .auth-shell { gap: 20px; }
  .invite-page .hero { margin-top: 20px; font-size: clamp(22px, 6.3vw, 26px); line-height: 1.2; }
  .invite-page .auth-card { padding: 20px; }
  .invite-page .auth-card h1 { margin-bottom: 18px; font-size: 23px; }
  .invite-page .auth-form { gap: 14px; }
  .invite-page .primary-button { margin-top: 0; }
  .invite-page .card-footer { margin-top: 16px; }
  .auth-wave { height: 320px; opacity: .54; }
}

@media (max-width: 359px) {
  .name-row { grid-template-columns: 1fr; }
}

.form-link[type="button"] { border: 0; padding: 0; background: none; cursor: pointer; }
.form-notice { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

[hidden]{display:none!important}.password-toggle{border:0;background:transparent;cursor:pointer;pointer-events:auto;padding:0;color:inherit}.password-toggle:focus-visible{outline:2px solid #43a5ff;outline-offset:3px}.primary-button:disabled{opacity:.65;cursor:wait}.company-name{overflow-wrap:anywhere}
