body.auth {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-layout {
  width: 100%;
  max-width: 420px;
  padding: 24px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
}

.auth-logo {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.auth-title {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.auth-form { display: flex; flex-direction: column; gap: 0; }

.auth-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.auth-form .field label {
  font-size: 13px;
  color: var(--muted2);
}

.auth-form .field input[type="text"],
.auth-form .field input[type="email"],
.auth-form .field input[type="password"] {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text);
  font-family: 'Geist', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.auth-form .field input:focus {
  border-color: var(--accent);
}

.auth-form .field input::placeholder {
  color: var(--placeholder);
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
}

.auth-link {
  font-size: 13px;
  color: var(--accent-text);
  text-decoration: none;
  transition: opacity 0.2s;
}
.auth-link:hover { opacity: 0.8; }

.auth-form .btn-primary {
  background: var(--accent);
  color: #1a1a18;
  border: none;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Geist', sans-serif;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s;
  width: 100%;
}
.auth-form .btn-primary:hover { opacity: 0.85; }

.auth-error {
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--red);
}
.auth-error p { margin-bottom: 2px; }
.auth-error p:last-child { margin-bottom: 0; }

.auth-success {
  background: rgba(93,214,140,0.1);
  border: 1px solid rgba(93,214,140,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--green);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  font-size: 15px;
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-google:hover {
  border-color: var(--border-light);
  background: var(--surface);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}
