/* account.css — the sign-in overlay (js/account.js).
   One dark card in the void's language: Lexiverse shell, Playfair title,
   a Google pill and an underlined email field. Nothing here may look like
   a SaaS form: no boxes of fields, no password, no "log in". */

#account {
  position: fixed;
  inset: 0;
  z-index: 50; /* above the profile page, so the save line can open it */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 6, 20, 0.72);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
#account.show { opacity: 1; }

.ac-shell {
  position: relative;
  width: min(400px, 100%);
  padding: 34px 32px 28px;
  background: rgba(20, 15, 40, 0.96);
  border: 1px solid rgba(140, 135, 220, 0.3);
  border-radius: 16px;
  box-shadow: 0 12px 60px rgba(5, 4, 16, 0.6), 0 0 32px rgba(140, 135, 220, 0.12);
  transform: translateY(10px);
  transition: transform 0.35s ease;
  text-align: center;
}
#account.show .ac-shell { transform: none; }

.ac-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--lavender);
  font-size: 15px;
  cursor: pointer;
  opacity: 0.6;
  padding: 6px;
}
.ac-close:hover { opacity: 1; }

.ac-title {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--cream);
}
.ac-sub {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--lavender);
  margin-top: 8px;
}

/* ---------- Google ---------- */

.ac-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 22px;
  padding: 11px 16px;
  background: none;
  border: 1px solid rgba(154, 147, 184, 0.45);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--cream);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.ac-google:hover {
  background: rgba(243, 234, 216, 0.05);
  border-color: rgba(243, 234, 216, 0.55);
}
.ac-google svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ---------- the divider ---------- */

.ac-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  color: rgba(154, 147, 184, 0.6);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.ac-or::before, .ac-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(154, 147, 184, 0.22);
}

/* ---------- the magic link ---------- */

.ac-email-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 12px;
}
.ac-input {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(154, 147, 184, 0.45);
  padding: 8px 2px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--cream);
  transition: border-color 0.3s ease;
}
.ac-input::placeholder { color: rgba(154, 147, 184, 0.55); }
.ac-input:focus {
  outline: none;
  border-bottom-color: rgba(232, 193, 106, 0.6);
}
.ac-send {
  flex-shrink: 0;
  padding: 7px 16px;
  background: none;
  border: 1px solid rgba(232, 193, 106, 0.5);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--gold, #E8C16A);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}
.ac-send:hover:not(:disabled) {
  background: rgba(232, 193, 106, 0.1);
  border-color: rgba(232, 193, 106, 0.9);
}
.ac-send:disabled { opacity: 0.45; cursor: default; }

.ac-status {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--lavender);
  margin-top: 16px;
  min-height: 1.2em;
}
.ac-status.error { color: #E8776A; }

/* ---------- signed in ---------- */

.ac-email {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--cream);
  margin-top: 14px;
}
.ac-signout {
  margin-top: 20px;
  padding: 7px 20px;
  background: none;
  border: 1px solid rgba(154, 147, 184, 0.45);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--lavender);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.ac-signout:hover { border-color: rgba(232, 119, 106, 0.6); color: #E8776A; }

/* ---------- the profile page's account row (js/profile.js) ---------- */

.pf-save-line {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--gold, #E8C16A);
  cursor: pointer;
  text-decoration: underline dotted rgba(232, 193, 106, 0.5);
  text-underline-offset: 3px;
}
.pf-save-line:hover { text-decoration-style: solid; }
.pf-save-sub {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 10.5px;
  color: rgba(154, 147, 184, 0.75);
}
.pf-email-addr { margin-right: 10px; }
.pf-signout {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--lavender);
  cursor: pointer;
  text-decoration: underline dotted rgba(154, 147, 184, 0.5);
  text-underline-offset: 3px;
}
.pf-signout:hover { color: #E8776A; }
