/* Sign-in / first-run setup page. */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.auth-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #e9f0ff;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(124, 92, 255, 0.35), transparent 60%),
    radial-gradient(800px 600px at 100% 100%, rgba(76, 141, 255, 0.35), transparent 60%),
    linear-gradient(160deg, #0b1220 0%, #070b13 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #4c8dff 0%, #7c5cff 100%);
  box-shadow: 0 10px 30px rgba(76, 141, 255, 0.45);
}
.auth-brand .brand-mark svg {
  width: 22px;
  height: 22px;
}
.auth-brand-name {
  font-weight: 700;
  font-size: 17px;
}
.auth-brand-sub {
  font-size: 12px;
  color: rgba(233, 240, 255, 0.6);
  letter-spacing: 0.04em;
}
.auth-pitch h1 {
  color: #fff;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.auth-pitch p {
  margin-top: 14px;
  color: rgba(233, 240, 255, 0.72);
  font-size: 15px;
  max-width: 46ch;
}
.auth-points {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(233, 240, 255, 0.85);
}
.auth-points .pt-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9fc0ff;
}
.auth-points .pt-ico svg {
  width: 15px;
  height: 15px;
}
.auth-chart {
  width: 100%;
  height: 150px;
  opacity: 0.9;
}
.auth-foot {
  font-size: 12px;
  color: rgba(233, 240, 255, 0.45);
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 40px 24px;
}
.auth-card {
  width: min(400px, 100%);
}
.auth-card h2 {
  font-size: 24px;
}
.auth-card .lead {
  color: var(--ink-2);
  margin: 6px 0 26px;
}
.pw-wrap {
  position: relative;
}
.pw-wrap .input {
  padding-right: 44px;
}
.pw-toggle {
  position: absolute;
  right: 4px;
  top: 3px;
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 18px;
  font-size: 13px;
  color: var(--ink-2);
}
.auth-error {
  display: none;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: var(--r-sm);
  background: var(--bad-soft);
  color: var(--bad);
  font-size: 13px;
}
.auth-error.show {
  display: flex;
}
.auth-submit {
  height: 42px;
  font-size: 14px;
}
.strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 8px;
}
.strength span {
  height: 4px;
  border-radius: 2px;
  background: var(--line-2);
}
.strength[data-level='1'] span:nth-child(-n + 1),
.strength[data-level='2'] span:nth-child(-n + 2) {
  background: var(--warn);
}
.strength[data-level='3'] span:nth-child(-n + 3),
.strength[data-level='4'] span:nth-child(-n + 4) {
  background: var(--good);
}
.auth-note {
  margin-top: 22px;
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.auth-note svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    padding: 28px 24px;
    gap: 18px;
  }
  .auth-pitch h1 {
    font-size: 24px;
  }
  .auth-points,
  .auth-chart,
  .auth-foot {
    display: none;
  }
}
