/*
 * Embervale's sign-in panel (embervale-login.js, mount()). Everything is under .evl and its evl-* classes, so it
 * styles nothing else on the page. The game's look: a thinboard (a grey see-through rectangle with a faint light
 * grey 1px border, more opaque while in use), Cinzel headings in gold, the ember-orange button. Restyle it by
 * setting the --evl-* properties on .evl (or any ancestor), or override the classes.
 */
.evl {
  --evl-font: "Outfit", system-ui, sans-serif;
  --evl-head-font: "Cinzel", Georgia, serif;
  --evl-text: #f3e6d0;
  --evl-muted: #cdb894;
  --evl-gold: #f6d28a;
  --evl-panel: rgba(40, 40, 40, 0.38);
  --evl-panel-active: rgba(32, 32, 32, 0.72);
  --evl-line: rgba(220, 220, 220, 0.95);
  --evl-field: rgba(0, 0, 0, 0.35);
  --evl-field-line: rgba(220, 220, 220, 0.45);
  --evl-accent: #c8792e;
  --evl-accent-hover: #e0913f;
  --evl-accent-text: #1b130a;
  --evl-width: 340px;

  box-sizing: border-box;
  width: min(100%, var(--evl-width));
  padding: 18px 18px 14px;
  background: var(--evl-panel);
  border: 1px solid var(--evl-line);
  color: var(--evl-text);
  font: 15px/1.4 var(--evl-font);
  text-align: left;
  transition: background-color 0.2s ease;
}
.evl *,
.evl *::before,
.evl *::after {
  box-sizing: border-box;
}
.evl:focus-within {
  background: var(--evl-panel-active);
}
.evl-title,
.evl-head {
  margin: 0 0 12px;
  font-family: var(--evl-head-font);
  font-weight: 700;
  color: var(--evl-gold);
  letter-spacing: 0.03em;
}
.evl-title {
  font-size: 22px;
}
.evl-head {
  font-size: 18px;
}
.evl-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.evl-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--evl-muted);
}
.evl-field input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--evl-field-line);
  border-radius: 0;
  background: var(--evl-field);
  color: var(--evl-text);
  font: 15px var(--evl-font);
}
.evl-field input:focus {
  outline: 2px solid var(--evl-gold);
  outline-offset: -1px;
}
.evl-btn {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--evl-line);
  border-radius: 0;
  background: transparent;
  color: var(--evl-text);
  font: 600 15px var(--evl-font);
  cursor: pointer;
}
.evl-btn:hover:not(:disabled) {
  background: rgba(220, 220, 220, 0.12);
}
.evl-primary {
  border-color: var(--evl-accent);
  background: var(--evl-accent);
  color: var(--evl-accent-text);
  font-weight: 700;
}
.evl-primary:hover:not(:disabled) {
  background: var(--evl-accent-hover);
}
.evl-play {
  padding: 14px;
  font-size: 20px;
}
.evl-btn:disabled,
.evl-link:disabled {
  opacity: 0.6;
  cursor: progress;
}
.evl-btn:focus-visible,
.evl-link:focus-visible,
.evl a:focus-visible {
  outline: 2px solid var(--evl-gold);
  outline-offset: 2px;
}
.evl-or {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--evl-muted);
  font-size: 12px;
}
.evl-or::before,
.evl-or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--evl-field-line);
}
.evl-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
}
.evl-link {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--evl-gold);
  font: 13px var(--evl-font);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.evl-text {
  margin: 0;
  font-size: 14px;
}
.evl-text b {
  color: var(--evl-gold);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.evl-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--evl-gold);
}
.evl-status:empty {
  min-height: 0;
  margin: 0;
}
.evl-invite {
  margin-top: 10px;
  font-size: 13px;
  color: var(--evl-muted);
}
.evl a {
  color: var(--evl-gold);
}
