/* Corporate-inspired layout — generic branding, not third-party trademarks */

:root {
  --blue-900: #003978;
  --blue-700: #0057b8;
  --blue-600: #006edc;
  --blue-50: #e8f2fb;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #d9e2ec;
  --card-shadow: 0 8px 32px rgba(0, 57, 120, 0.12);
  --radius: 10px;
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--blue-50) 0%, #f5f7fa 45%, #eef1f5 100%);
  display: flex;
  flex-direction: column;
}

.topbar {
  background: #fff;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 57, 120, 0.08);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  line-height: 0;
}

/* Header logo; tweak --brand-logo-h if needed */
.brand-logo {
  display: block;
  height: var(--brand-logo-h, 2.25rem);
  width: auto;
  max-width: min(200px, 52vw);
  object-fit: contain;
  object-position: left center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: block;
  height: 1.125rem;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.9;
}

.topbar-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.topbar-nav a {
  color: var(--blue-700);
  text-decoration: none;
  font-weight: 600;
}

.topbar-nav a:hover {
  color: var(--blue-900);
  text-decoration: underline;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.login-shell {
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem 1.75rem;
}

.login-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-900);
}

.login-lead {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.login-form .field {
  margin-bottom: 1.1rem;
}

.login-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-form input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(0, 110, 220, 0.2);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  font-size: 0.85rem;
}

.remember {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}

.remember input {
  accent-color: var(--blue-600);
}

.link {
  color: var(--blue-700);
  text-decoration: none;
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(180deg, var(--blue-600) 0%, var(--blue-700) 100%);
  box-shadow: 0 2px 6px rgba(0, 57, 120, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  transition: transform 0.08s, box-shadow 0.15s, filter 0.15s;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
  box-shadow: 0 4px 12px rgba(0, 57, 120, 0.4);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-message {
  margin: 1rem 0 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
}

.form-message.ok {
  color: #0d6832;
}

.form-message.err {
  color: #b00020;
}

.fine-print {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner a {
  color: var(--blue-700);
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.thank-you-card {
  text-align: center;
  padding-top: 2.25rem;
  padding-bottom: 2rem;
}

.thank-you-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #1b5e20;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 3.5rem;
}

.thank-you-title {
  margin-bottom: 0.75rem;
}

.thank-you-text {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.thank-you-btn {
  text-decoration: none;
  display: inline-flex;
  max-width: 100%;
}

@media (max-width: 520px) {
  .topbar-nav {
    display: none;
  }

  .login-card {
    padding: 1.5rem 1.25rem;
  }
}
