/* ── Landing page ─────────────────────────────────────────────────────────── */

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

body.landing-page {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100dvh;
  background: #0a0a0a;
  overflow-x: hidden;
}

/* ── Background ─────────────────────────────────────────────────────────────── */
.l-bg {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden;
}
.l-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: center center;
  animation: kenBurns 24s ease-out both;
}
.l-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.55) 50%,
    rgba(0,0,0,.75) 100%
  );
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* ── Content wrapper ─────────────────────────────────────────────────────── */
.l-content {
  position: relative; z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #fff;
}

/* ── Logo ─────────────────────────────────────────────────────────────────── */
.l-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeUp .7s ease both;
  animation-delay: .1s;
}
.l-logo svg { color: #fff; }
.l-logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
}

/* ── Hero text ───────────────────────────────────────────────────────────── */
.l-hero { margin-bottom: 3rem; }

.l-welcome {
  font-size: clamp(.8rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: .75rem;
  opacity: 0;
  animation: fadeUp .8s ease both;
  animation-delay: .45s;
}

.l-title {
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  color: #fff;
  margin-bottom: .6rem;
  opacity: 0;
  animation: fadeUp .9s ease both;
  animation-delay: .9s;
}

.l-tagline {
  font-size: clamp(.9rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
  opacity: 0;
  animation: fadeUp .8s ease both;
  animation-delay: 1.4s;
}

/* ── CTA buttons ─────────────────────────────────────────────────────────── */
.l-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  opacity: 0;
  animation: fadeUp .8s ease both;
  animation-delay: 1.9s;
}

.l-btn-primary {
  display: inline-block;
  padding: .85rem 2.4rem;
  background: #fff;
  color: #111;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.l-btn-primary:hover {
  background: #e8e8e8;
  transform: translateY(-2px);
}

.l-btn-secondary {
  display: inline-block;
  padding: .85rem 2.4rem;
  background: transparent;
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.45);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.l-btn-secondary:hover {
  border-color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}

.l-divider {
  color: rgba(255,255,255,.4);
  font-size: .78rem;
  letter-spacing: .1em;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.l-footer {
  position: fixed;
  bottom: 1.5rem;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.3);
  font-size: .72rem;
  letter-spacing: .08em;
  z-index: 1;
  opacity: 0;
  animation: fadeIn .6s ease both;
  animation-delay: 2.6s;
}

/* ── Auth pages ──────────────────────────────────────────────────────────── */
body.auth-page {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100dvh;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
body.auth-page .l-bg { position: fixed; inset: 0; z-index: 0; }

.auth-card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  color: #fff;
  opacity: 0;
  animation: fadeUp .6s ease both;
  animation-delay: .1s;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.75rem;
}
.auth-logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.5);
  font-size: .78rem;
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: color .2s;
}
.auth-back:hover { color: rgba(255,255,255,.9); }

.auth-title {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: .4rem;
  letter-spacing: -.02em;
}
.auth-sub {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.auth-field label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: .4rem;
}
.auth-field input {
  width: 100%;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: .6rem;
  color: #fff;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, background .2s;
}
.auth-field input:focus {
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.1);
}
.auth-field input::placeholder { color: rgba(255,255,255,.25); }

.auth-error {
  font-size: .82rem;
  color: #f87171;
  min-height: 1.2em;
  margin-top: -.25rem;
}

.auth-submit {
  width: 100%;
  padding: .85rem;
  margin-top: .5rem;
  background: #fff;
  color: #111;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: none;
  border-radius: .6rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.auth-submit:hover:not(:disabled) { background: #e8e8e8; transform: translateY(-1px); }
.auth-submit:disabled { opacity: .5; cursor: not-allowed; }

.auth-switch {
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  margin-top: 1rem;
}
.auth-switch a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

/* ── Shared animations ───────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .l-content { padding: 1.5rem 1.25rem; }
  .l-logo { margin-bottom: 2.5rem; }
  .l-hero { margin-bottom: 2rem; }
  .l-cta { width: 100%; }
  .l-btn-primary, .l-btn-secondary { width: 100%; text-align: center; padding: .8rem 1.5rem; }
  .auth-card { padding: 1.75rem 1.25rem; margin: 0 .5rem; }
  .auth-title { font-size: 1.35rem; }
  .auth-field input { font-size: .875rem; padding: .7rem .875rem; }
  .auth-submit { padding: .8rem; font-size: .875rem; }
}

@media (max-width: 360px) {
  .auth-card { padding: 1.5rem 1rem; margin: 0 .25rem; }
  .l-title { font-size: clamp(3rem, 18vw, 4rem); }
}
