@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg: #04152d;
  --bg-deep: #020d1c;
  --panel: rgba(4, 26, 54, 0.82);
  --panel-border: rgba(170, 196, 222, 0.26);
  --text: #eef5ff;
  --muted: #aac2dd;
  --accent: #63d1c5;
  --accent-strong: #7ce6d8;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(52, 131, 203, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(99, 209, 197, 0.16), transparent 28%),
    linear-gradient(140deg, var(--bg-deep), var(--bg));
  color: var(--text);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.container {
  position: relative;
  z-index: 1;
  width: min(100%, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 16px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent);
}

.login-box h2 {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.login-box {
  width: min(100%, 430px);
  padding: 32px;
  border-radius: 28px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.login-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.login-box h2 {
  margin: 12px 0 14px;
  font-size: 2rem;
  color: var(--text);
}

.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 12px;
  margin-top: 26px;
  background: linear-gradient(135deg, #0d284e, #0f3a6d);
  color: var(--text);
  border: 1px solid rgba(170, 196, 222, 0.3);
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.google-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #10335f, #145086);
}

.google-btn:focus-visible {
  outline: 3px solid rgba(124, 230, 216, 0.45);
  outline-offset: 3px;
}

.google-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.support-note {
  margin-top: 18px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 10, 22, 0.68);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loading-icon {
  position: relative;
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 3px solid rgba(124, 230, 216, 0.16);
  border-top-color: var(--accent-strong);
  border-right-color: rgba(124, 230, 216, 0.5);
  animation: spin 1s linear infinite;
}

.loader-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 18px rgba(124, 230, 216, 0.55);
  animation: pulse 1.4s ease-in-out infinite;
}

.loader-dot-one {
  top: 18px;
}

.loader-dot-two {
  right: 14px;
  bottom: 26px;
  animation-delay: 0.15s;
}

.loader-dot-three {
  left: 14px;
  bottom: 26px;
  animation-delay: 0.3s;
}

.loader-label {
  position: absolute;
  bottom: -32px;
  width: 180px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@media (max-width: 920px) {
  .container {
    padding: 24px 12px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100%, calc(100% - 20px));
  }

  .login-box {
    padding: 24px;
    border-radius: 22px;
  }

  #loading-icon {
    transform: scale(0.92);
  }
}
