/* ==============================================================
   ACCOUNT FURNITURE

   The parts the prototype never needed: the account menu, the
   unverified banner, empty states, and the auth pages.

   Everything here borrows the variables app.css already defines,
   so a colour change there carries through.
============================================================== */

/* --------------------------------------------------------------
   ACCOUNT MENU
-------------------------------------------------------------- */

.account-menu-wrap {
  position: relative;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;

  min-width: 232px;

  background: #121926;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);

  padding: 8px;

  animation: menu-in 0.16s ease;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.account-menu-head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.account-menu-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.account-menu-email {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  word-break: break-all;
}

.account-menu-item {
  display: block;
  width: 100%;

  padding: 10px 12px;

  font: inherit;
  font-size: 13.5px;
  text-align: left;
  text-decoration: none;
  color: var(--text-soft);

  background: none;
  border: none;
  border-radius: 10px;

  cursor: pointer;

  transition: background 0.15s ease, color 0.15s ease;
}

.account-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.account-menu-item.is-danger:hover {
  color: var(--mana-red);
}

/* --------------------------------------------------------------
   THE UNVERIFIED BANNER

   Present but not alarming: they can look around the tower, they
   just cannot claim yet.
-------------------------------------------------------------- */

.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;

  margin-bottom: 16px;
  padding: 14px 18px;

  background: rgba(213, 178, 100, 0.08);
  border: 1px solid rgba(213, 178, 100, 0.28);
  border-radius: var(--radius-medium);
}

.verify-banner-main {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
}

.verify-banner-main strong {
  color: var(--gold-light);
  display: block;
  margin-bottom: 2px;
}

.verify-banner-button {
  flex-shrink: 0;

  padding: 9px 18px;

  font-size: 12.5px;
  font-weight: 700;

  color: #141414;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border: none;
  border-radius: 999px;

  cursor: pointer;
}

.verify-banner-button:disabled {
  opacity: 0.65;
  cursor: default;
}

/* --------------------------------------------------------------
   SMALL ADDITIONS TO THE DASHBOARD
-------------------------------------------------------------- */

/* The collection bonus, shown on the pool tile that earns it. */
.mana-bonus {
  color: var(--pip);
  font-weight: 700;
}

.activity-empty {
  padding: 28px 22px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --------------------------------------------------------------
   AUTH PAGES

   One card, centred, as few fields as the job allows.
-------------------------------------------------------------- */

.auth-shell {
  min-height: 100vh;

  display: grid;
  place-items: center;

  padding: 32px 16px;
}

.auth-card {
  width: min(430px, 100%);

  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);

  padding: 34px 30px 30px;
}

.auth-crest {
  display: block;
  width: 62px;
  height: 62px;

  margin: 0 auto 18px;

  border-radius: 16px;
  object-fit: cover;
}

.auth-eyebrow {
  text-align: center;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);

  margin-bottom: 8px;
}

.auth-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  color: var(--text);

  margin-bottom: 8px;
}

.auth-sub {
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--text-soft);

  margin-bottom: 24px;
}

.auth-field {
  margin-bottom: 15px;
}

.auth-label {
  display: block;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-soft);

  margin-bottom: 6px;
}

.auth-input {
  width: 100%;

  padding: 12px 14px;

  font: inherit;
  font-size: 15px;
  color: var(--text);

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;

  transition: border-color 0.16s ease, background 0.16s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.auth-input::placeholder {
  color: var(--text-muted);
}

.auth-hint {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 6px;
}

/* The consent checkbox. Its wording is the promise being made,
   so it is set as readable prose rather than a legal footnote. */
.auth-consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;

  margin: 20px 0 22px;
  padding: 14px;

  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.auth-consent input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--gold);
  cursor: pointer;
}

.auth-consent label {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-soft);
  cursor: pointer;
}

.auth-button {
  width: 100%;

  padding: 14px;

  font: inherit;
  font-size: 15px;
  font-weight: 700;

  color: #141414;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border: none;
  border-radius: 999px;

  cursor: pointer;

  transition: transform 0.15s ease, filter 0.15s ease;
}

.auth-button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.auth-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.auth-alt {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);

  font-size: 13px;
  text-align: center;
  color: var(--text-soft);
}

.auth-alt a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.auth-alt a:hover {
  text-decoration: underline;
}

.auth-secondary {
  display: block;
  margin-top: 14px;

  font-size: 12.5px;
  text-align: center;
  color: var(--text-muted);
  text-decoration: none;
}

.auth-secondary:hover {
  color: var(--text-soft);
}

/* Messages. Error and success share a shape so the page does not
   jump when one replaces the other. */

.auth-message {
  padding: 12px 14px;
  margin-bottom: 18px;

  font-size: 13px;
  line-height: 1.55;
  border-radius: 12px;
}

.auth-message.is-error {
  color: #ffc9bd;
  background: rgba(207, 53, 32, 0.14);
  border: 1px solid rgba(207, 53, 32, 0.34);
}

.auth-message.is-success {
  color: #b6e9cd;
  background: rgba(26, 132, 73, 0.14);
  border: 1px solid rgba(26, 132, 73, 0.34);
}

.auth-message.is-info {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

/* The claim notice on the login page: the buyer scanned a card
   and needs to know it is safe while they sign in. */
.auth-claim {
  display: flex;
  gap: 12px;
  align-items: flex-start;

  padding: 14px 16px;
  margin-bottom: 20px;

  background: rgba(213, 178, 100, 0.08);
  border: 1px solid rgba(213, 178, 100, 0.3);
  border-radius: 14px;
}

.auth-claim-icon {
  font-size: 20px;
  line-height: 1.2;
}

.auth-claim-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-soft);
}

.auth-claim-text strong {
  display: block;
  color: var(--gold-light);
  font-size: 13.5px;
  margin-bottom: 3px;
}

/* --------------------------------------------------------------
   ACCOUNT SETTINGS PAGE
-------------------------------------------------------------- */

.account-page {
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.account-back {
  display: inline-block;
  margin-bottom: 20px;

  font-size: 13px;
  color: var(--text-soft);
  text-decoration: none;
}

.account-back:hover {
  color: var(--text);
}

.account-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);

  padding: 26px 26px 24px;
  margin-bottom: 18px;
}

.account-panel h2 {
  font-family: "Cinzel", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
}

.account-panel-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  padding: 12px 0;
  border-bottom: 1px solid var(--border);

  font-size: 13.5px;
}

.account-row:last-child {
  border-bottom: none;
}

.account-row-label {
  color: var(--text-muted);
}

.account-row-value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.account-button {
  padding: 11px 22px;

  font: inherit;
  font-size: 13.5px;
  font-weight: 600;

  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;

  cursor: pointer;
}

.account-button:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.09);
}

.account-button.is-primary {
  color: #141414;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border: none;
}

.session-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;

  padding: 12px 0;
  border-bottom: 1px solid var(--border);

  font-size: 12.5px;
  color: var(--text-soft);
}

.session-item:last-child {
  border-bottom: none;
}

.session-current {
  color: var(--mana-green);
  font-weight: 700;
}

@media (max-width: 560px) {
  .auth-card { padding: 26px 20px 24px; }
  .account-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .account-row-value { text-align: left; }
}

/* --------------------------------------------------------------
   The [hidden] attribute has to win.

   app.css sets display on several of these elements, and a bare
   `display:flex` beats the browser's default `[hidden]` rule —
   which is how an image with no src ends up showing its alt text
   in an empty frame.
-------------------------------------------------------------- */

[hidden] {
  display: none !important;
}

/* The reveal card's last-resort face: the source's own icon, drawn
   large. Artwork is better, and the store crest is better than
   nothing, but a brand-new install has neither and the card still
   has to look deliberate. */

.rw-glyph {
  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  font-size: 84px;
  line-height: 1;

  opacity: 0.9;
}
