/* Login-page-specific layout only — color tokens (light/dark/system) come
   from main.css, loaded before this file. Measurements/structure match the
   real spec borrowed (read-only) from the Core/Monitoring apps' own
   auth pages, adapted for FieldView (F / IELDVIEW) and for the Microsoft
   SSO sign-in button instead of a local username/password form. */

body.login-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-tint), var(--bg));
  color: var(--text);
  position: relative;
}

.theme-toggle-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2.25rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* .apex-brand / .apex-brand-mark / .apex-brand-login / .apex-brand-text /
   .apex-brand-technology all come from main.css (shared with the header). */

.product-lockup {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  width: var(--brand-width, 220px);
  margin-top: 22px;
  color: #3fa9ff;
  font-family: 'Aldrich', sans-serif;
  -webkit-text-stroke: 0.6px currentColor;
}

.product-lockup .hex {
  width: 80px;
  height: 80px;
  display: block;
}

.product-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 18px;
  text-transform: uppercase;
}

.product-underline {
  width: 80px;
  height: 3px;
  background: #129de1;
  border-radius: 10px;
  margin: 10px auto 0;
}

.tagline {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 14px 0 0;
}

.microsoft-signin {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 9px;
  background: var(--primary);
  color: var(--primary-text);
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  margin-top: 1.5rem;
}

.microsoft-signin:hover {
  background: var(--primary-hover);
}

.microsoft-signin svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dev-login-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}

.dev-login-link:hover {
  color: var(--primary);
}

.login-error {
  background: var(--down-tint);
  color: var(--down);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  margin-top: 1rem;
  text-align: left;
}
