/* ------------------------------------------------------------------ */
/* Boot + login                                                        */
/* ------------------------------------------------------------------ */

.boot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 13px;
}

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.auth-hero {
  --rule: 4.6366vh;
  --line0: 6.917vh;
  --brand-size: clamp(36px, 2.9vw, 42px);
  --sub-size: clamp(15px, 1.2vw, 18px);
  --title-size: clamp(42px, 5vw, 84px);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 239, 0.18), rgba(255, 250, 239, 0.02) 42%, rgba(255, 248, 233, 0.22)),
    url('/background.png') center / cover no-repeat;
  color: #2b2117;
  padding: clamp(30px, 4vw, 58px);
  display: flex;
  flex-direction: column;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 48%,
    rgba(255, 250, 238, 0.42) 0%,
    rgba(255, 250, 238, 0.16) 38%,
    transparent 68%
  );
  pointer-events: none;
}

.auth-brand {
  position: absolute;
  top: calc(var(--line0) + var(--rule) - 1.06em + 10px);
  left: clamp(28px, 4vw, 56px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--brand-size);
}

.auth-brand-name {
  font-family: var(--font-serif);
  font-size: inherit;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  color: #2a1f15;
  text-shadow: 0 1px 0 rgba(255, 250, 239, 0.55);
}

.auth-brand-sub {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: var(--sub-size);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.2;
  color: #3f3022;
  text-shadow: 0 1px 0 rgba(255, 250, 239, 0.45);
}

.auth-hero-body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(53.283vh - var(--title-size) - 21px) clamp(24px, 4vw, 56px) 0;
  text-align: center;
  pointer-events: none;
}

.auth-title {
  font-family: var(--font-serif);
  font-size: var(--title-size);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  color: #2a1f15;
  text-shadow:
    0 1px 0 rgba(255, 251, 241, 0.7),
    0 0 34px rgba(255, 248, 232, 0.55);
}

.auth-tagline {
  position: absolute;
  left: clamp(28px, 4vw, 56px);
  right: auto;
  bottom: calc(0.85em + 13px);
  max-width: 620px;
  margin: 0;
  text-align: left;
  font-family: var(--font-serif);
  font-size: clamp(18px, calc(3.4vw - 13px), 37px);
  font-weight: 500;
  line-height: var(--rule);
  letter-spacing: -0.025em;
  color: #3a2c1f;
  text-shadow:
    0 1px 0 rgba(255, 251, 241, 0.65),
    0 0 28px rgba(255, 248, 232, 0.5);
}

.hero-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: calc(var(--rule) + 21px);
}

.hero-word {
  background: rgba(255, 250, 239, 0.34);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  backdrop-filter: blur(12px) saturate(1.05);
  border: 1px solid rgba(43, 33, 23, 0.24);
  border-radius: 15px;
  padding: 24px 24px;
  min-width: clamp(164px, 12.4vw, 184px);
  transform: rotate(-1.5deg);
  box-shadow: 0 1px 0 rgba(255, 252, 244, 0.35);
}

.hero-word:nth-child(2) {
  transform: rotate(1.1deg) translateY(6px);
}

.hero-word:nth-child(3) {
  transform: rotate(-0.6deg);
}

.hero-word b {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  display: block;
  color: #2a1f15;
}

.hero-word span {
  font-size: 13px;
  color: #5b4936;
  letter-spacing: 0.02em;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 56px);
}

.auth-card {
  width: 100%;
  max-width: 392px;
  animation: rise 0.4s ease both;
}

.auth-mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-mobile-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.auth-card h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.auth-card > p {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.auth-mobile-tagline {
  display: none;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 26px;
}

.demo-box {
  margin-top: 26px;
  border: 1px dashed var(--line-strong);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 14px 16px;
}

.demo-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 8px;
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}

.demo-row + .demo-row {
  border-top: 1px solid var(--line);
}

.demo-role {
  font-size: 11px;
  color: var(--ink-soft);
  width: 56px;
  flex: none;
}

.demo-creds {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-fill {
  margin-left: auto;
  flex: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.demo-fill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.demo-note {
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.5;
}

.forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.auth-switch {
  margin-top: 2px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
}
