/* Auth pages */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
}
.auth-panel {
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.auth-form-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-form {
  width: 100%;
  max-width: 380px;
}
.auth-form h1 {
  font-size: 2.1rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.auth-form > p.sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.auth-field label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}
.auth-field input {
  height: 42px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 15%, transparent);
}
.auth-field input::placeholder { color: var(--text-subtle); }
.auth-field .helper { font-size: 11.5px; color: var(--text-muted); }
.auth-field.error input { border-color: oklch(0.62 0.17 25); }
.auth-field.error .helper { color: oklch(0.58 0.17 25); }
.auth-field.valid .helper { color: var(--status-reached); }

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 11px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-sso {
  display: grid;
  gap: 8px;
}
.auth-sso-btn {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s;
}
.auth-sso-btn:hover { background: var(--bg-alt); border-color: var(--text-muted); }

.auth-footer {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
}
.auth-footer a { color: var(--accent-text); font-weight: 500; }
[data-theme="dark"] .auth-footer a { color: var(--accent); }
.auth-footer a:hover { text-decoration: underline; }

.auth-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Right panel — visual side */
.auth-visual {
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.auth-visual::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent) 10%, transparent), transparent 60%);
  pointer-events: none;
}
.auth-quote {
  position: relative;
  max-width: 420px;
}
.auth-quote-text {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 20px;
  text-wrap: pretty;
}
.auth-quote-attr {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.auth-quote-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
}

.auth-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.auth-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.auth-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.auth-logo-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { padding: 32px 24px; min-height: 100vh; }
}
