/* Login page — page-specific styles. Tokens, typography, base form controls,
   and button variants come from /shared/brand.css. A single frosted card
   floats on the canvas wash. */

html, body { min-height: 100%; }

#app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

#card {
  width: 100%;
  max-width: 440px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  padding: 36px 34px 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #card { background: var(--surface); }
}

#card-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 18px;
}
.brand-logo img {
  display: block;
  height: 30px;
  width: auto;
}

#card-head h1 {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: var(--fg);
}

.card-tagline {
  margin: 0 0 14px 0;
  color: var(--fg-muted);
  font-size: 15px;
}

#tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  margin-top: 4px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
}
#tabs[hidden] { display: none; }

.tab {
  flex: 1;
  background: transparent;
  color: var(--fg-muted);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 9px 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.tab:hover,
button.tab:hover:not(:disabled) {
  color: var(--fg);
  background: transparent;
  border-color: transparent;
}
.tab.active,
button.tab.active:hover:not(:disabled) {
  color: var(--fg);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 3px 10px -3px rgba(0, 0, 0, 0.16);
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 2px 0 0 0;
}
.panel[hidden] { display: none; }

.panel label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-label);
}

.panel button[type="submit"] {
  margin-top: 6px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 13px;
  width: 100%;
}

.panel-intro {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.error {
  min-height: 1em;
  color: var(--state-error);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.error .resend-verification-btn {
  margin-top: 8px;
  padding: 8px 14px;
  font-size: 13px;
}
.error .resend-verification-btn:disabled { opacity: 0.6; }
.error .resend-note {
  margin-top: 6px;
  color: var(--fg-muted);
  font-size: 12px;
}

.success {
  color: var(--state-success);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.success[hidden] { display: none; }

.forgot-link {
  align-self: flex-end;
  color: var(--fg-muted);
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}
.forgot-link:hover {
  color: var(--accent-text);
  text-decoration: underline;
}
.forgot-link[hidden] { display: none; }

@media (max-width: 480px) {
  #card { padding: 28px 22px 26px; border-radius: 22px; }
}
