@import url("./foundation.css?v=20260315-mid-graphite-bg-deeper-3");
@import url("./toast.css");

body.auth-body {
  background:
    radial-gradient(90% 85% at 14% 18%, rgba(255, 122, 26, 0.14), transparent 45%),
    radial-gradient(80% 70% at 88% 14%, rgba(126, 141, 168, 0.12), transparent 42%),
    linear-gradient(180deg, #131215 0%, #111114 54%, #101014 100%);
}

.auth-body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 20px;
  align-items: stretch;
}

.auth-hero,
.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.auth-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(110% 90% at 16% 12%, rgba(255, 136, 54, 0.22), transparent 42%),
    radial-gradient(120% 110% at 100% 0%, rgba(110, 123, 154, 0.2), transparent 36%),
    linear-gradient(155deg, rgba(24, 24, 27, 0.96), rgba(16, 16, 19, 0.98));
}

.auth-hero::before,
.auth-hero::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.9;
}

.auth-hero::before {
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: -60px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.28), transparent 68%);
}

.auth-hero::after {
  width: 180px;
  height: 180px;
  left: -30px;
  top: 90px;
  background: radial-gradient(circle, rgba(130, 144, 172, 0.16), transparent 70%);
}

.auth-kicker {
  margin: 4px 0 0;
  color: rgba(255, 232, 214, 0.72);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.auth-hero .brand-block {
  gap: .92rem;
}

.auth-hero .brand-logo {
  width: 66px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ff9829, #f37d1d);
  box-shadow: 0 10px 22px rgba(243, 125, 29, .34);
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.auth-hero .brand-name {
  margin: 0;
  color: #f2f4f7;
  font-size: clamp(1.85rem, 2.5vw, 2.18rem);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.035em;
}

.auth-card .brand-inline {
  gap: .7rem;
}

.auth-card .brand-logo.small {
  width: 52px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ff9829, #f37d1d);
  box-shadow: 0 10px 22px rgba(243, 125, 29, .34);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.auth-card .brand-name {
  display: block;
  max-width: 8.5ch;
  margin: 0;
  color: rgba(242, 244, 247, 0.92);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.auth-hero-copy {
  margin-top: 36px;
  max-width: 620px;
}

.auth-hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.auth-hero-copy p {
  margin: 16px 0 0;
  color: rgba(242, 244, 247, 0.78);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 42ch;
}

.auth-hero-points {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.hero-point {
  padding: 15px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.hero-point strong {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 247, 241, 0.96);
}

.hero-point span {
  color: rgba(240, 230, 224, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: 26px 26px 24px;
  background:
    linear-gradient(180deg, rgba(28, 29, 34, 0.96), rgba(17, 18, 22, 0.985)),
    radial-gradient(90% 80% at 15% 0%, rgba(255, 136, 54, 0.08), transparent 45%);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%);
}

.auth-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-mode-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-mode-btn {
  min-width: 110px;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: rgba(242, 244, 247, 0.7);
  font: inherit;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.auth-mode-btn:hover {
  color: #ffffff;
}

.auth-mode-btn.is-active {
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.96), rgba(255, 95, 0, 0.92));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 122, 26, 0.24);
}

.auth-card h2 {
  position: relative;
  z-index: 1;
  margin: 26px 0 10px;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.auth-subtitle {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  color: rgba(222, 227, 233, 0.72);
  line-height: 1.55;
  max-width: 42ch;
}

.auth-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.auth-form label span {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(242, 244, 247, 0.74);
}

.auth-body input {
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background: linear-gradient(180deg, rgba(13, 14, 18, 0.9), rgba(17, 18, 22, 0.96)) !important;
  color: #f5f1ec;
  border-radius: 16px;
  padding: 14px 15px;
}

.auth-body input::placeholder {
  color: rgba(188, 196, 206, 0.46);
}

.auth-body input:focus {
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.14) !important;
  border-color: rgba(255, 146, 63, 0.6) !important;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(232, 236, 241, 0.76);
}

.checkbox-wrap input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
}

.auth-server-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(236, 240, 245, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.auth-form .btn-primary {
  margin-top: 4px;
  min-height: 52px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
}

.auth-google {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.auth-google[hidden] {
  display: none !important;
}

.auth-google.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(228, 233, 239, 0.42);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
}

.auth-google-shell {
  display: grid;
  gap: 10px;
}

.auth-google-button {
  display: flex;
  justify-content: center;
  min-height: 42px;
}

.auth-google-button > div {
  width: 100%;
}

.auth-google-hint {
  margin: 0;
  color: rgba(222, 227, 233, 0.62);
  font-size: 0.9rem;
  line-height: 1.48;
}

.auth-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: rgba(228, 233, 239, 0.7);
}

.auth-inline-link {
  border: none;
  padding: 0;
  background: transparent;
  color: #ffb27c;
  font: inherit;
  cursor: pointer;
}

.auth-inline-link:hover {
  color: #ffd1ad;
  text-decoration: underline;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: 0;
  }

  .auth-hero .brand-logo {
    width: 62px;
    height: 44px;
    border-radius: 15px;
    font-size: 1.2rem;
  }

  .auth-hero .brand-name {
    font-size: 1.72rem;
  }
}

@media (max-width: 760px) {
  .auth-body {
    padding: 14px;
  }

  .auth-card,
  .auth-hero {
    border-radius: 22px;
    padding: 20px;
  }

  .auth-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-mode-tabs {
    width: 100%;
  }

  .auth-mode-btn {
    min-width: 0;
    width: 100%;
  }

  .auth-hero-copy {
    margin-top: 26px;
  }

  .auth-hero .brand-block,
  .auth-card .brand-inline {
    gap: .72rem;
  }

  .auth-hero .brand-logo {
    width: 58px;
    height: 40px;
    border-radius: 14px;
    font-size: 1.08rem;
  }

  .auth-hero .brand-name {
    font-size: 1.48rem;
  }

  .auth-card .brand-logo.small {
    width: 48px;
    height: 34px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .auth-card .brand-name {
    font-size: 1rem;
  }

  .auth-row,
  .auth-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
