@import url("/static/shared/tokens.css?v=20261007btn2");
@import url("/static/shared/alert.css?v=20260910b");
@import url("/static/shared/site-topbar.css?v=20261007btn2");
@import url("/static/shared/buttons.css?v=20261008teaserbtn");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.top-nav {
  display: none;
}

.auth-shell {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.card .lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.free-scan-claim {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--section-bg-light);
  font-size: 0.92rem;
}

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

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.field-optional {
  color: var(--muted);
  font-weight: 400;
}

.field-help {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.field-help a {
  color: var(--accent);
}

.field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.field input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-color: var(--accent);
}

button[type="submit"],
button[type="button"].primary {
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:disabled,
button[type="button"].primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.info {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--text);
  font-size: 0.92rem;
}

.hidden {
  display: none;
}

.oauth-divider.hidden,
.oauth-buttons.hidden {
  display: none;
}

.auth-card--mfa #oauth-buttons,
.auth-card--mfa #saml-buttons,
.auth-card--mfa #oauth-divider,
.auth-card--mfa #login-form,
.auth-card--mfa #login-footer-register,
.auth-card--mfa #login-footer-forgot {
  display: none !important;
}

.auth-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-hint {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

a.auth-btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

a.auth-btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

a.auth-btn-secondary:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--text);
}

.mfa-code-input {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.15em;
}

.oauth-divider {
  display: block;
  width: 100%;
  height: 1px;
  margin: 1.1rem 0;
  border: 0;
  background: var(--border);
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.oauth-buttons.compact {
  margin-top: 0.75rem;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.oauth-btn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}

.oauth-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.oauth-btn::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.oauth-btn--google::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234285F4' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%2334A853' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59a14.5 14.5 0 0 1 0-9.18l-7.98-6.19a24 24 0 0 0 0 21.55l7.98-6.18z'/%3E%3Cpath fill='%23EA4335' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E");
}

.oauth-btn--microsoft::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 23'%3E%3Cpath fill='%23f25022' d='M1 1h10v10H1z'/%3E%3Cpath fill='%2300a4ef' d='M12 1h10v10H12z'/%3E%3Cpath fill='%237fba00' d='M1 12h10v10H1z'/%3E%3Cpath fill='%23ffb900' d='M12 12h10v10H12z'/%3E%3C/svg%3E");
}

.oauth-btn--saml::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='10' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

.oauth-linked-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.oauth-linked-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  font-size: 0.92rem;
}

.oauth-linked-item strong {
  font-weight: 600;
}

.oauth-linked-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.mfa-toggle-link {
  margin: 0;
  font-size: 0.9rem;
}

.mfa-toggle-link button {
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.forgot-password-card .lead {
  margin-bottom: 1.5rem;
}

.forgot-password-card #forgot-form {
  margin-top: 0.75rem;
}

.forgot-success-panel {
  text-align: center;
  padding-top: 0.25rem;
}

.forgot-success-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.85rem;
}

.forgot-success-message {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: left;
}

.forgot-resend-wrap {
  margin: 1rem 0 0;
}

.forgot-resend-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: underline;
}

.forgot-resend-link:hover:not(:disabled) {
  color: var(--accent-hover);
}

.forgot-resend-link:disabled {
  color: var(--muted);
  cursor: not-allowed;
  text-decoration: none;
}

.verify-email-icon {
  font-size: 2.5rem;
  line-height: 1;
  text-align: center;
  margin-bottom: 0.75rem;
}

.field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.verify-email-display {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--text);
  font-size: 1rem;
  word-break: break-all;
}
