@font-face {
  font-family: 'logo';
  src: url('fonts/Exo2-VariableFont_wght.ttf') format('truetype');
}

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

html, body {
  height: 100%;
}

body {
  font-family: roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: rgba(249, 250, 251, 0.65);
  background: #0b0f19;
}

.auth-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.08), transparent 40%),
    linear-gradient(135deg, #0b0f19 0%, #111827 100%);
}

.auth-container-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.auth-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem 4rem;
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 1;
  /* push the hero up visually, but keep screenshots reachable by scroll */
  /*
  padding-top: max(4rem, calc(50vh - 260px));
  */
}

.auth-logo-wrap {
  margin-bottom: 0.25rem;
}

.auth-logo-img {
  height: clamp(48px, 10vw, 80px);
  width: auto;
}

.auth-title {
  font-size: clamp(28px, 8vw, 40px);
  font-family: 'logo', Helvetica, Arial, sans-serif;
  font-weight: bold;
  color: rgba(249, 250, 251, 0.65);
}

.auth-subtitle {
  font-family: 'logo', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: rgba(249, 250, 251, 0.65);
}

.auth-box {
  padding: 2rem 1rem;
  border-radius: 8px;
  text-align: center;
  width: 100%;
}

.auth-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.auth-btn {
  padding: 0.75rem 2rem;
  font-size: 16px;
  min-height: 44px;
  min-width: 160px;
  touch-action: manipulation;
  border-radius: 4px;
  color: rgba(249, 250, 251, 0.65);
  border: 1px solid #2351b4;
  background: #21438b;
  transition: background-color 0.2s;
  cursor: pointer;
  font-family: roboto, Helvetica, Arial, sans-serif;
}

.auth-btn:hover:not(:disabled) {
  background-color: #21489d;
  border-color: #3b82f6;
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.screenshot {
  cursor: zoom-in;
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#lightbox-img {
  width: 80vw;
  height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  pointer-events: none;
}

.screenshots {
  margin-top: 4rem;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.screenshot {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(0, 200, 255, 0.12);
  display: block;
}

@media (max-width: 400px) {
  .auth-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .auth-btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .screenshots {
    grid-template-columns: 1fr;
  }
}
