.auth-page {
  --auth-bg: #f6f6f7;
  --auth-surface: #ffffff;
  --auth-border: #dddde2;
  --auth-text: #242329;
  --auth-muted: #6f6b75;
  --auth-accent: var(--purple);
  --auth-radius: 6px;
  min-height: 100vh;
  color: var(--auth-text);
  background: var(--auth-bg);
}

.auth-layout {
  width: min(960px, calc(100% - 40px));
  min-height: 590px;
  margin: clamp(30px, 7vh, 76px) auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  border: 1px solid var(--auth-border);
  background: var(--auth-surface);
}

.auth-brand-panel {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--auth-border);
  background: #fbfbfc;
}

.auth-brand { color: var(--auth-text); }
.auth-brand .brand-mark { box-shadow: none; }

.auth-kicker,
.form-eyebrow {
  color: var(--auth-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.35px;
}

.auth-brand-panel h1 {
  max-width: 340px;
  margin: 12px 0 14px;
  font-size: clamp(31px, 3.4vw, 43px);
  line-height: 1.08;
  letter-spacing: -1.8px;
}

.auth-brand-panel p {
  max-width: 350px;
  margin: 0;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.65;
}

.auth-brand-panel > small {
  color: #85818b;
  font-size: 10px;
}

.auth-form-panel {
  padding: 48px clamp(36px, 7vw, 82px);
  display: flex;
  align-items: center;
}

.auth-form-wrap { width: 100%; max-width: 410px; }
.mobile-auth-brand { display: none; }

.auth-form-wrap h2 {
  margin: 9px 0 7px;
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.form-intro {
  margin: 0 0 24px;
  color: var(--auth-muted);
  font-size: 13px;
}

.auth-error {
  margin-bottom: 16px;
  padding: 11px 12px;
  color: #9d3030;
  background: #fff7f7;
  border: 1px solid #e9caca;
  border-radius: var(--auth-radius);
  font-size: 12px;
}

.auth-form { display: grid; }

.auth-form label {
  margin: 13px 0 6px;
  color: #4e4b54;
  font-size: 11px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  color: var(--auth-text);
  border: 1px solid #ceccd3;
  border-radius: 4px;
  outline: 0;
  background: var(--auth-surface);
}

.auth-form input:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 2px rgba(93, 80, 242, 0.12);
}

.auth-form small {
  margin-top: 6px;
  color: #85818b;
  font-size: 10px;
}

.auth-form .primary-button {
  width: 100%;
  height: 44px;
  margin-top: 22px;
  border-radius: 4px;
  box-shadow: none;
}

.auth-switch {
  margin: 20px 0 0;
  color: var(--auth-muted);
  text-align: center;
  font-size: 12px;
}

.auth-switch a { color: var(--auth-accent); font-weight: 700; }

@media (max-width: 760px) {
  .auth-layout {
    width: min(100% - 28px, 540px);
    min-height: 0;
    margin: 20px auto;
    grid-template-columns: 1fr;
  }

  .auth-brand-panel { display: none; }
  .auth-form-panel { min-height: calc(100vh - 40px); padding: 36px; }
  .auth-form-wrap { margin: auto; }
  .mobile-auth-brand { margin-bottom: 48px; display: inline-flex; }
}

@media (max-width: 480px) {
  .auth-layout { width: 100%; margin: 0; border: 0; }
  .auth-form-panel { min-height: 100vh; padding: 28px 22px; align-items: flex-start; }
  .mobile-auth-brand { margin: 4px 0 44px; }
  .auth-form-wrap h2 { font-size: 27px; }
}
