:root {
  --ink: #0f172a;
  --muted: #5b6b7a;
  --ocean: #0f4c81;
  --reef: #0ea5a4;
  --line: rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(14,165,164,.16), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(15,76,129,.14), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(245,158,11,.12), transparent 32%),
    linear-gradient(180deg, #fbfdff, #edf6fb);
}

.login-page {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar,
.login-site-footer {
  background: linear-gradient(135deg, #0b1630, #123b63);
  color: rgba(247, 249, 252, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar {
  height: 90px;
}

.login-site-footer {
  border: 0;
  background: transparent;
  color: inherit;
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.login-site-footer p,
.login-site-footer span {
  margin: 0;
}

.login-site-footer span {
  color: rgba(240, 242, 247, 0.78);
  font-size: 0.88rem;
}

.login-shell {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 14px 24px 10px;
  overflow: hidden;
}

.login-card {
  width: min(560px, 100%);
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(36,26,52,.12);
  display: block;
}

.login-card-body {
  padding: 24px 22px 22px;
  display: grid;
  gap: 18px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-home-link {
  color: inherit;
  text-decoration: none;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-link img {
  width: 72px;
  height: 72px;
  border-radius: 3px;
  object-fit: contain;
  box-shadow: 0 14px 24px rgba(4, 15, 29, 0.2);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  color: rgba(247, 249, 252, 0.95);
}

.brand-copy span {
  color: rgba(240, 242, 247, 0.78);
  font-size: .84rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.login-copy {
  display: grid;
  gap: 8px;
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14,165,164,.14);
  color: #0f4c81;
  font-weight: 600;
  font-size: .78rem;
}

.login-copy h1 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.42rem, 3vw, 2rem);
}

.login-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.provider-panel {
  display: grid;
  gap: 12px;
}

.provider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.provider-grid.is-single {
  grid-template-columns: 1fr;
}

.provider-empty {
  margin: 0;
  border: 1px dashed rgba(36, 26, 52, 0.16);
  border-radius: 3px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  text-align: center;
}

.provider-btn {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,251,253,0.96));
  border-radius: 3px;
  padding: 16px 14px;
  min-height: 92px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.provider-btn.google:hover {
  border-color: rgba(234,67,53,.35);
  box-shadow: 0 10px 24px rgba(234,67,53,.08);
  transform: translateY(-1px);
}

.provider-btn.facebook {
  color: #1877f2;
}
.provider-btn.facebook:hover {
  border-color: rgba(24,119,242,.35);
  box-shadow: 0 10px 24px rgba(24,119,242,.09);
  transform: translateY(-1px);
}

.provider-btn:disabled {
  opacity: .7;
  cursor: default;
}

.provider-btn.is-loading {
  position: relative;
}

.provider-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.provider-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.login-float-loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 18, 34, 0.44);
  display: grid;
  place-items: center;
}

.login-float-loader[hidden] {
  display: none !important;
}

.login-float-loader-inner {
  width: 96px;
  height: 96px;
  padding: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(34, 28, 49, 0.1);
  box-shadow: 0 22px 44px rgba(34, 28, 49, 0.22);
  display: grid;
  place-items: center;
}

.login-float-loader-inner img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(34, 28, 49, 0.26));
  animation: login-spin 1.2s linear infinite, login-float 2.1s ease-in-out infinite;
}

.back-link {
  color: rgba(247, 249, 252, 0.92);
  font-weight: 600;
  opacity: .9;
  text-decoration: none;
}

.back-link:hover {
  opacity: 1;
}

.site-footer {
  margin: 0;
  padding: 0;
  width: 100%;
}

.footer-shell {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 0;
  border-radius: 3px;
  color: rgba(245, 251, 255, 0.94);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 164, 0.14), transparent 24%),
    linear-gradient(135deg, #081c35, #0f3b63 46%, #0ea5a4);
  box-shadow: 0 18px 34px rgba(8, 23, 46, 0.18);
}

.footer-top {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 24px 0;
}

.footer-logo-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-column img {
  width: 40px;
  height: 40px;
  display: block;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-column {
  display: grid;
  gap: 6px;
}

.footer-column h3 {
  margin: 0 0 2px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.76rem;
}

.footer-column a,
.footer-column span {
  font-size: 0.68rem;
  line-height: 1.25;
  color: rgba(231, 241, 249, 0.82);
  text-decoration: none;
}

.footer-band {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 10px;
  padding: 0 0 12px;
}

.footer-band-item {
  display: grid;
  gap: 4px;
  width: 95%;
  padding: 8px 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-band-item span {
  color: rgba(233, 243, 250, 0.64);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-band-item strong {
  font-size: 0.66rem;
  line-height: 1.2;
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes login-float {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -4px;
  }
}

@media (max-width: 540px) {
  .login-shell {
    padding: 10px 12px 8px;
  }

  .login-card-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .provider-grid {
    grid-template-columns: 1fr;
  }

  .login-bar-inner {
    width: calc(100% - 20px);
    min-height: 74px;
    padding: 10px 0;
  }

  .footer-top {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 10px 0;
  }

  .footer-logo-column img {
    width: 34px;
    height: 34px;
  }

  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .footer-column h3 {
    font-size: 0.62rem;
  }

  .footer-column a,
  .footer-column span {
    font-size: 0.58rem;
    line-height: 1.15;
  }
}
