@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;700&display=swap');

:root {
  color-scheme: dark;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  background: #07101f;
  color: #f7f9ff;
  --bright: #66c5e7;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button { font: inherit; }

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.1fr);
  background: radial-gradient(circle at 18% 18%, rgba(103, 80, 186, .24), transparent 38%), linear-gradient(145deg, #07101f, #101a31 58%, #07101f);
}

.auth-art {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(7, 16, 31, .08), #07101f), url('assets/tiresias-auth-bg-original.png') left center/cover no-repeat;
}

.auth-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, #0b1425 100%);
}

.auth-brand {
  position: absolute;
  z-index: 1;
  left: 48px;
  top: 42px;
  width: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #fff;
  text-decoration: none;
  text-align: center;
}

.auth-brand img {
  width: 138px;
  height: 70px;
  object-fit: contain;
  display: block;
}

.brand-name {
  margin-left: .32em;
  font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.56rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: .32em;
  color: #fff;
}
.brand-name b { font-family: Montserrat, ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-synthesis: none; }

.auth-panel-wrap {
  display: grid;
  place-items: center;
  padding: 48px;
}

.auth-panel { width: min(440px, 100%); }
.auth-panel h1 {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 500;
}

.auth-intro {
  margin: 0 0 34px;
  color: #aeb8ca;
  line-height: 1.6;
}

.google-button {
  width: 100%;
  min-height: 52px;
  border: 1px solid #4b566c;
  border-radius: 9px;
  color: #f7f9ff;
  background: #172238;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
}

.google-button:hover { background: #202d46; }
.google-button:disabled { cursor: wait; opacity: .65; }
.google-button svg { width: 21px; height: 21px; }

.auth-message {
  min-height: 24px;
  margin: 18px 0 0;
  color: #b7c0d1;
  text-align: center;
}

.auth-message.error { color: #ff9eaa; }
.auth-message.success { color: var(--bright); }

@media (max-width: 820px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { min-height: 260px; background-position: left 35%; }
  .auth-art::after { background: linear-gradient(180deg, transparent 35%, #0b1425 100%); }
  /* Size the brand to its wordmark so the centered text cannot spill left. */
  .auth-brand { left: 24px; top: 28px; width: max-content; max-width: calc(100% - 48px); }
  .auth-brand .brand-name { font-size: clamp(1.1rem, 5.8vw, 1.56rem); }
  .auth-panel-wrap { padding: 38px 24px 56px; }
}
