:root {
  --bg: #07111f;
  --bg-soft: rgba(11, 24, 44, 0.82);
  --panel: rgba(9, 17, 30, 0.82);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #f3f7ff;
  --muted: #98a6bf;
  --line: rgba(255, 255, 255, 0.1);
  --primary: #4f8cff;
  --primary-hover: #3f78e6;
  --danger: #ff7a7a;
  --success: #4bc690;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 140, 255, 0.24), transparent 32%),
    radial-gradient(circle at bottom right, rgba(72, 219, 187, 0.18), transparent 28%),
    var(--bg);
  color: var(--text);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  padding-top: 26px;
}

.site-mark {
  position: fixed;
  top: 26px;
  left: 32px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.site-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.24));
}

.site-name {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.site-name strong {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-name span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-panel,
.auth-panel {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-wrap,
.card {
  width: min(100%, 520px);
}

.brand-wrap {
  padding: 56px 16px 16px;
}

.eyebrow {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9e5ff;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-wrap h1 {
  margin: 20px 0 12px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.brand-wrap p {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.value-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.value-list li {
  position: relative;
  padding-left: 28px;
  color: #dce6fb;
}

.value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #66e5bc);
}

.card {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.card-header h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.card-header p {
  margin: 0 0 24px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.94rem;
  color: #d7e2f8;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input::placeholder {
  color: #7d8ca8;
}

.field input:focus {
  border-color: rgba(79, 140, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 88px;
}

.ghost-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #d8e4ff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
}

.form-row {
  display: flex;
  justify-content: flex-end;
}

.primary-button {
  border: none;
  border-radius: 14px;
  padding: 15px 18px;
  font: inherit;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #69b0ff);
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 14px 26px rgba(79, 140, 255, 0.32);
}

.primary-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.text-link {
  color: #cfe0ff;
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  color: white;
}

.status {
  margin-top: 18px;
  min-height: 24px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--success);
}

.auth-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
}

@media (max-width: 960px) {
  .page-shell {
    grid-template-columns: 1fr;
    padding-top: 86px;
  }

  .brand-panel {
    padding-bottom: 0;
  }

  .auth-panel {
    padding-top: 24px;
  }

  .brand-wrap {
    padding-top: 16px;
  }
}

@media (max-width: 640px) {
  .site-mark {
    left: 22px;
    top: 20px;
    gap: 12px;
  }

  .site-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .site-name span {
    letter-spacing: 0.12em;
  }

  .brand-panel,
  .auth-panel {
    padding: 22px;
  }

  .card {
    padding: 24px;
  }

  .brand-wrap h1 {
    font-size: 2rem;
  }
}

/* --- Mobile-first signup flow polish --- */
html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.site-logo {
  width: min(152px, 44vw);
  height: auto;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.24));
}

.site-name {
  display: none;
}

.mobile-kicker {
  display: none;
}

.signup-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: -8px 0 22px;
}

.signup-proof-row span {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: #d7e4ff;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.primary-button,
.ghost-button,
.text-link {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 760px) {
  body {
    min-height: 100svh;
    background:
      radial-gradient(circle at top right, rgba(79, 140, 255, 0.22), transparent 34%),
      linear-gradient(180deg, rgba(7, 17, 31, 0.96), rgba(7, 17, 31, 1));
  }

  .site-mark {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 58px;
    padding: 12px 16px 8px;
    z-index: 20;
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.96), rgba(7, 17, 31, 0.72));
    backdrop-filter: blur(18px);
  }

  .site-logo {
    width: min(132px, 48vw);
    max-height: 42px;
  }

  .page-shell {
    display: block;
    min-height: calc(100svh - 58px);
    padding: 8px 14px 18px;
  }

  .brand-panel {
    display: none;
  }

  .auth-panel {
    min-height: auto;
    align-items: stretch;
    padding: 0;
  }

  .card {
    width: 100%;
    padding: 19px;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
      rgba(9, 17, 30, 0.9);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  }

  .mobile-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(79, 140, 255, 0.14);
    color: #cfe0ff;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .card-header h2 {
    margin-bottom: 6px;
    font-size: clamp(1.42rem, 7vw, 1.8rem);
    line-height: 1.08;
  }

  .card-header p {
    margin-bottom: 15px;
    font-size: 0.88rem;
    line-height: 1.48;
  }

  .signup-proof-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 15px;
  }

  .signup-proof-row span {
    padding: 7px 6px;
    font-size: 0.68rem;
    letter-spacing: -0.01em;
  }

  .auth-form {
    gap: 12px;
  }

  .field {
    gap: 6px;
  }

  .field span {
    font-size: 0.84rem;
    font-weight: 750;
  }

  .field input {
    min-height: 46px;
    padding: 12px 13px;
    border-radius: 14px;
    font-size: 0.95rem;
  }

  .password-wrap input {
    padding-right: 72px;
  }

  .ghost-button {
    right: 6px;
    padding: 7px 8px;
    font-size: 0.82rem;
  }

  .primary-button {
    min-height: 48px;
    margin-top: 2px;
    border-radius: 15px;
    font-size: 0.96rem;
    box-shadow: 0 14px 26px rgba(79, 140, 255, 0.26);
  }

  .status {
    margin-top: 12px;
    min-height: 18px;
    font-size: 0.84rem;
  }

  .auth-footer {
    margin-top: 16px;
    padding-top: 14px;
    justify-content: center;
    font-size: 0.86rem;
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding-inline: 10px;
  }

  .card {
    padding: 16px;
  }

  .signup-proof-row span {
    font-size: 0.62rem;
  }
}
