/* Auth pages — Clearspace Design System (Editorial Split + Centered Minimal) */

.auth-body {
  margin: 0;
  min-height: 100vh;
  background: var(--cs-dark-blue, #323D4C);
  color: var(--cs-charcoal, #16191A);
  font-family: var(--font-primary, 'Suisse Intl', 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.auth-body *, .auth-body *::before, .auth-body *::after { box-sizing: border-box; }

/* ─── Editorial Split — login page ────────────────────────────────── */
.auth-split {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto 1fr;
}
.auth-brand {
  grid-column: 1; grid-row: 1 / -1;
  display: grid; grid-template-rows: subgrid;
  background: var(--cs-dark-blue, #323D4C);
  color: #FFFFFF;
  padding: 64px 72px;
  overflow: hidden;
}
.auth-brand-top { grid-row: 1; align-self: start; }
.auth-brand-top img { height: 26px; display: block; width: auto; }
.auth-brand-content { grid-row: 2; align-self: start; }

.auth-headline {
  font-family: inherit; font-weight: 300; font-size: 88px; line-height: 1.02;
  letter-spacing: -0.025em; text-transform: uppercase; color: #FFFFFF;
  text-wrap: balance; max-width: 9ch; margin: 0;
}
.auth-em { color: var(--cs-light-blue, #3BABFF); }

.auth-form {
  grid-column: 2; grid-row: 1 / -1;
  display: grid; grid-template-rows: subgrid;
  background: #FFFFFF;
  padding: 64px 80px;
}
.auth-form-top { grid-row: 1; align-self: start; height: 26px; }
.auth-form-middle {
  grid-row: 2; align-self: start;
  display: flex; flex-direction: column; align-items: flex-start;
}

.auth-product {
  font-family: inherit; font-weight: 300; font-size: 72px;
  line-height: 1.0; letter-spacing: -0.03em;
  color: var(--cs-charcoal, #16191A); margin: 0;
}
.auth-blurb {
  font-family: inherit; font-weight: 300; font-size: 16px; line-height: 1.45;
  color: var(--cs-n-500, #6B7280); margin: 20px 0 0; max-width: 38ch;
}

.auth-ms-btn {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 24px; padding: 16px 26px;
  border: 1px solid var(--cs-n-300, #D1D5DB); border-radius: 8px;
  background: #FFFFFF; color: var(--cs-charcoal, #16191A);
  font-family: inherit; font-size: 16px; font-weight: 400; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-ms-btn:hover {
  border-color: var(--cs-n-500, #6B7280);
  box-shadow: 0 1px 6px rgba(22, 25, 26, 0.07);
}
.auth-ms-btn:focus-visible {
  outline: none;
  border-color: var(--cs-light-blue, #3BABFF);
  box-shadow: 0 0 0 3px rgba(59, 171, 255, 0.10);
}
.auth-ms-logo { width: 18px; height: 18px; flex-shrink: 0; }

.auth-sso-note {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-family: inherit; font-size: 13px; color: var(--cs-n-500, #6B7280);
}
.auth-sso-note svg { width: 14px; height: 14px; stroke: var(--cs-n-400, #9CA3AF); flex-shrink: 0; }

.auth-flash {
  margin: 0 0 16px 0; font-family: inherit; font-size: 14px;
  font-weight: 400; line-height: 1.4; letter-spacing: -0.005em;
}
.auth-flash--error   { color: var(--cs-light-red, #F05A5A); }
.auth-flash--success { color: var(--cs-dark-green, #3F4D32); }

/* ─── Centered Minimal — callback / reset / denied / 403 ──────────── */
.auth-center {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 64px 32px; background: #FFFFFF;
}
.auth-stack { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: flex-start; }
.auth-stack-mark { height: 26px; width: auto; display: block; margin-bottom: 48px; }
.auth-stack-product {
  font-family: inherit; font-weight: 300; font-size: 48px;
  line-height: 1.0; letter-spacing: -0.03em;
  color: var(--cs-charcoal, #16191A); margin: 0;
}
.auth-stack-subtitle {
  font-family: inherit; font-weight: 300; font-size: 16px; line-height: 1.45;
  color: var(--cs-n-500, #6B7280); margin: 16px 0 0; max-width: 38ch;
}
.auth-stack .auth-flash { margin-bottom: 24px; }

.auth-form-fields {
  width: 100%; margin-top: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-family: inherit; font-size: 13px; font-weight: 400;
  color: var(--cs-n-700, #374151); letter-spacing: -0.005em;
}
.auth-field input {
  width: 100%; padding: 11px 14px;
  font-family: inherit; font-size: 15px; font-weight: 300;
  color: var(--cs-charcoal, #16191A); background: #FFFFFF;
  border: 1px solid var(--cs-n-300, #D1D5DB); border-radius: 8px;
  outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-field input::placeholder { color: var(--cs-n-400, #9CA3AF); font-weight: 300; }
.auth-field input:focus {
  border-color: var(--cs-light-blue, #3BABFF);
  box-shadow: 0 0 0 3px rgba(59, 171, 255, 0.10);
}

.auth-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 4px; padding: 12px 18px;
  border: 1px solid var(--cs-light-blue, #3BABFF); border-radius: 8px;
  background: var(--cs-light-blue, #3BABFF); color: #FFFFFF;
  font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.auth-btn:hover {
  background: var(--cs-dark-blue, #323D4C);
  border-color: var(--cs-dark-blue, #323D4C);
}
.auth-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(59, 171, 255, 0.20); }
.auth-btn--link { text-align: center; margin-top: 28px; }

/* ─── Responsive — collapse the split below 880px ─────────────────── */
@media (max-width: 880px) {
  .auth-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
  }
  .auth-brand, .auth-form {
    grid-column: 1; grid-row: auto;
    grid-template-rows: none; display: block;
  }
  .auth-brand { padding: 40px 32px; }
  .auth-headline { font-size: 56px; max-width: 14ch; }
  .auth-form { padding: 48px 32px; }
  .auth-form-top { display: none; }
  .auth-product { font-size: 48px; }
}
