.auth-page .login-shell {
  min-height: 100svh;
  padding: 24px;
}

.auth-page .login-card {
  width: min(100%, 360px);
  padding: 32px;
  border: 1px solid #e1e7e1;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgb(24 35 30 / 5%);
}

.auth-page .login-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 30px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.auth-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eaf2ec;
}

.auth-mark svg { width: 20px; height: 20px; }

.auth-page .login-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.auth-page .login-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.auth-page .is-loading::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 1.5px solid #dce6df;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}

.auth-page form { display: grid; gap: 8px; margin-top: 24px; }
.auth-page label { font-size: 12px; font-weight: 600; color: var(--text); }
.auth-page input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #dce3dc;
  border-radius: 9px;
  background: #fbfcfa;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.auth-page input::placeholder { color: #929c95; }
.auth-page input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(35 100 79 / 10%); }
.auth-page button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}
.auth-page button:focus-visible { outline: 3px solid #a5cbb6; outline-offset: 3px; }
.auth-page .login-error { padding: 0; background: none; color: #ad3d32; font-weight: 400; }
.auth-page .login-card h1 { overflow-wrap: anywhere; }
.auth-description { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.permission-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid #e1e9e2;
  border-radius: 10px;
  background: #f6f9f5;
}
.permission-summary > svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--accent); }
.permission-summary strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; }
.permission-summary span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-callback { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-callback strong { color: var(--text); font-weight: 500; }
.auth-page .consent-actions { grid-template-columns: 1fr 1.65fr; gap: 8px; margin-top: 24px; }
.auth-page .consent-actions button { margin-top: 0; }
.auth-page .auth-secondary { border-color: var(--line); background: transparent; color: var(--muted); }
.auth-page .auth-secondary:hover { background: #f4f6f2; color: var(--text); }
.auth-page button:disabled { cursor: wait; opacity: 0.65; }
.auth-page .consent-status { margin-top: 12px; font-size: 12px; }
.auth-page .consent-status:empty { display: none; }

@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth-page .is-loading::before { animation: none; } }
@media (max-width: 400px) { .auth-page .login-card { padding: 26px; } }
