:root {
  --void: #0a0a0b;
  --paper: #f5f5f4;
  --paper-soft: rgba(245, 245, 244, 0.75);
  --paper-mute: rgba(245, 245, 244, 0.55);
  --paper-faint: rgba(245, 245, 244, 0.12);
  --mist: #b9c9d6;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-brand: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body.login-page {
  font-family: var(--font);
  color: var(--paper);
  background: var(--void);
  line-height: 1.45;
  text-wrap: pretty;
}

.hero-plane {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--void);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transform: scale(1.04);
  animation: hero-drift 22s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.35) 40%, rgba(10, 10, 11, 0.78) 100%),
    radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(10, 10, 11, 0.45) 70%);
  pointer-events: none;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 5vw, 64px);
  background: linear-gradient(to bottom, rgba(10, 10, 11, 0.7), transparent);
  animation: rise 0.7s ease both;
}

.nav-brand {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  letter-spacing: 0.16em;
  color: var(--paper);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper-soft);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--mist);
}

.login-stage {
  flex: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(96px, 14vw, 160px) 24px clamp(64px, 8vw, 96px);
}

.login-copy {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}

.eyebrow {
  margin: 0;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--paper-mute);
  animation: rise 0.7s ease 0.05s both;
}

.brand {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.14em;
  color: var(--paper);
  animation: rise 0.75s ease 0.1s both;
}

.tagline {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--paper);
  animation: rise 0.75s ease 0.16s both;
}

.auth-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  width: min(100%, 22rem);
  margin-top: 0.5rem;
  animation: rise 0.8s ease 0.22s both;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  padding: 1rem 2rem;
  background: var(--paper);
  color: var(--void);
  border-radius: 2px;
}

.btn.primary:hover {
  background: #fff;
}

.btn.ghost {
  padding: 0.95rem 2rem;
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(245, 245, 244, 0.35);
  border-radius: 100px;
}

.btn.ghost:hover {
  border-color: rgba(245, 245, 244, 0.7);
  background: rgba(245, 245, 244, 0.06);
}

.btn.google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 2rem;
  background: rgba(245, 245, 244, 0.95);
  color: var(--void);
  border-radius: 100px;
}

.btn.google:hover {
  background: #fff;
}

.google-mark {
  display: inline-flex;
  line-height: 0;
}

.home-note {
  margin: 0.35rem 0 0;
  max-width: 36ch;
  color: var(--paper-mute);
  font-size: 0.92rem;
  line-height: 1.55;
  animation: rise 0.8s ease 0.28s both;
}

.login-footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem 24px 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(245, 245, 244, 0.4);
  letter-spacing: 0.04em;
  animation: rise 0.9s ease 0.32s both;
}

.login-footer a {
  color: rgba(245, 245, 244, 0.55);
  text-decoration: none;
  margin-left: 1rem;
}

.login-footer a:hover {
  color: var(--mist);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, 1%, 0);
  }
}

@media (max-width: 560px) {
  .top-nav {
    padding: 22px 20px;
  }

  .login-stage {
    padding-top: 7.5rem;
  }

  .brand {
    letter-spacing: 0.1em;
  }
}
