/* ============================================================
   Lora — sign-in page (glassmorphism over warm blurred bg)
   ============================================================ */
:root {
  --accent: #e67c2c;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.72);
  --ink-3: rgba(255, 255, 255, 0.5);
}

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

html, body { height: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: #8a3a16;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- warm blurred background ---------- */
.login-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: #8a3a16; }
.login-bg__img {
  position: absolute; inset: -8%;
  width: 116%; height: 116%;
  object-fit: cover;
  filter: blur(46px) saturate(1.1) brightness(0.95);
  opacity: 0.55;
}
.login-bg__tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(45% 55% at 18% 26%, rgba(20, 8, 2, 0.5), transparent 60%),
    radial-gradient(48% 58% at 84% 72%, rgba(18, 7, 2, 0.5), transparent 62%),
    radial-gradient(60% 55% at 62% 22%, rgba(255, 150, 80, 0.32), transparent 62%),
    radial-gradient(80% 80% at 45% 105%, rgba(120, 45, 15, 0.6), transparent 60%),
    linear-gradient(135deg, rgba(168, 74, 28, 0.55), rgba(122, 51, 18, 0.7));
}
.login-bg__grain {
  position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- always-present home link (top-left brand) ---------- */
.login-home {
  position: fixed; top: 22px; left: 26px; z-index: 10;
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none;
  filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.4));
  transition: opacity 0.2s;
}
.login-home:hover { opacity: 0.75; }
.login-home__mark { width: 20px; height: 20px; display: inline-grid; place-items: center; }
.login-home__mark svg { width: 100%; height: 100%; }
.login-home__word { font-family: "EB Garamond", Georgia, "Times New Roman", serif; font-size: 23px; letter-spacing: -0.01em; line-height: 1; }
@media (max-width: 480px) { .login-home { top: 18px; left: 20px; } }

/* ---------- glass card ---------- */
.glass-card {
  position: relative;
  width: 100%; max-width: 28rem;
  height: calc(100dvh - 3rem);
  border-radius: 28px;
  padding: 26px;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    0 40px 90px rgba(0, 0, 0, 0.35);
}
@media (min-width: 640px) {
  .glass-card { height: 70vh; min-height: 600px; max-height: 800px; }
}

.card-main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.card-top {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.card-logo { display: inline-grid; place-items: center; width: 56px; height: 56px; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.25)); }
.card-logo svg { width: 100%; height: 100%; }
.card-subtitle { font-size: 14px; color: var(--ink-2); }

/* ---------- auth buttons ---------- */
.auth-btns { display: flex; flex-direction: column; gap: 12px; }
.auth-btn {
  height: 48px; border-radius: 999px; border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.auth-btn:hover { transform: translateY(-1px); }
.auth-btn:active { transform: translateY(0); }
.auth-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.auth-btn--apple { background: #ffffff; color: #000000; }
.auth-btn--apple:hover { background: #e9e9e9; }

.auth-btn--glass {
  background: rgba(255, 255, 255, 0.1); color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.auth-btn--glass:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- footer ---------- */
.card-foot { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.signup-line { font-size: 14px; color: var(--ink-2); }
.signup-line a { color: #ffffff; text-decoration: underline; text-underline-offset: 2px; }
.legal { display: flex; gap: 18px; }
.legal a { font-size: 12px; color: var(--ink-3); text-decoration: none; transition: color 0.2s; }
.legal a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .auth-btn { transition: none; } }
