/* ══════════════════════════════════════════════════
   auth.css — Auth view & Account Dashboard styles
   Gridlight VTT · v0.3.0
══════════════════════════════════════════════════ */

/* ─── Auth View scroll container ────────────────── */
/* Override .view's overflow so landing content scrolls */
#view-auth { overflow-y: auto; }

/* ─── Hero section — full first screen ──────────── */
.auth-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Scroll hint chevron at the bottom of the hero */
.auth-scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: rgba(230,237,243,.2);
  font-family: 'Cinzel', serif;
  font-size: .52rem;
  letter-spacing: .22em;
  cursor: pointer;
  transition: color .25s;
  animation: hintFloat 2.8s ease-in-out infinite;
  white-space: nowrap;
}
.auth-scroll-hint:hover { color: rgba(90,169,255,.5); }
.auth-scroll-hint svg   { width: 20px; height: 20px; }
@keyframes hintFloat {
  0%, 100% { transform: translateX(-50%) translateY(0);    opacity: .55; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 1;   }
}

/* ─── Landing body (below the fold) ─────────────── */
.landing-body {
  background: #080c11;
  border-top: 1px solid rgba(90,169,255,.07);
}

.landing-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 5.5rem 2.5rem;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 2.8rem;
  align-items: start;
  border-bottom: 1px solid rgba(90,169,255,.06);
}
.landing-section:last-of-type { border-bottom: none; }

.landing-section-icon {
  font-size: 2.6rem;
  line-height: 1;
  padding-top: .3rem;
  text-align: center;
  filter: drop-shadow(0 0 14px rgba(90,169,255,.22));
}

.landing-eyebrow {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: .58rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-accent-primary, #5AA9FF);
  margin-bottom: .5rem;
}
.landing-heading {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #e6edf3;
  margin-bottom: .9rem;
}
.landing-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.07rem;
  line-height: 1.8;
  color: rgba(230,237,243,.5);
  margin-bottom: 1.2rem;
}
.landing-tags {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.landing-tag {
  font-family: 'Cinzel', serif;
  font-size: .52rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(90,169,255,.55);
  background: rgba(90,169,255,.07);
  border: 1px solid rgba(90,169,255,.14);
  padding: .22rem .6rem;
  border-radius: 20px;
}

/* ─── Landing footer CTA ─────────────────────────── */
.landing-footer {
  text-align: center;
  padding: 4rem 2rem 5rem;
  background: #050709;
  border-top: 1px solid rgba(90,169,255,.07);
}
.landing-footer-logo {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(180deg, #8EC8FF 0%, #5AA9FF 60%, #3A7EC4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}
.landing-footer-sub {
  font-family: 'EB Garamond', serif;
  font-size: .95rem;
  font-style: italic;
  color: rgba(230,237,243,.25);
  margin-bottom: 2rem;
}
.landing-footer-cta {
  font-family: 'Cinzel', serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #080c11;
  background: linear-gradient(135deg, rgba(90,169,255,.9), rgba(79,209,197,.8));
  border: none;
  padding: .8rem 2.2rem;
  cursor: pointer;
  border-radius: 3px;
  transition: filter .2s, transform .15s;
}
.landing-footer-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
.landing-footer-copy {
  margin-top: 3rem;
  font-family: 'Cinzel', serif;
  font-size: .54rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(230,237,243,.1);
}

/* ─── Auth View ─────────────────────────────────── */

.auth-tabs {
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: var(--gold-dim);
  padding: .55rem .5rem;
  transition: color .2s, border-bottom-color .2s;
}

.auth-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  display: block;
  margin-bottom: .35rem;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--border);
  color: var(--parchment);
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  padding: .5rem .75rem;
  outline: none;
  transition: border-color .2s;
  border-radius: 3px;
}

.auth-input:focus {
  border-color: var(--gold);
}

.auth-hint {
  display: block;
  font-size: .65rem;
  color: rgba(240, 230, 200, .3);
  margin-top: .25rem;
  font-style: italic;
}

.auth-error {
  color: #e74c3c;
  font-size: .72rem;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  margin-bottom: .5rem;
  min-height: 1em;
}

.auth-btn-primary {
  width: 100%;
  padding: .75rem;
  background: linear-gradient(135deg, rgba(90, 169, 255, .7), rgba(79, 209, 197, .6));
  border: none;
  color: #0F1217;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .2s;
  border-radius: 3px;
  margin-top: .5rem;
}

.auth-btn-primary:hover {
  filter: brightness(1.12);
}

.auth-btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.auth-loading-text {
  font-family: 'Cinzel', serif;
  font-size: .65rem;
  letter-spacing: .15em;
  color: var(--gold-dim);
  text-align: center;
  padding: .5rem;
  display: none;
}

/* ─── Dashboard Overlay & Window ──────────────────── */

#dashboard-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#dashboard-window {
  position: relative;
  width: 860px;
  max-width: 95vw;
  height: 85vh;
  max-height: 700px;
  background: var(--panel);
  border: 1px solid var(--border-h, rgba(201, 168, 76, .3));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(0, 0, 0, .8);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

/* ─── Dashboard Header ──────────────────────────── */

.dash-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .65rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel2, #1a1610);
  flex-shrink: 0;
}

.dash-title {
  font-family: 'Cinzel', serif;
  font-size: .78rem;
  letter-spacing: .22em;
  color: var(--gold);
  flex: 1;
}

.dash-user-pill {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--border);
  padding: .2rem .65rem .2rem .35rem;
  border-radius: 20px;
}

.dash-user-pill .dash-avatar {
  font-size: 1.1rem;
  line-height: 1;
}

.dash-user-pill .dash-uname {
  font-family: 'Cinzel', serif;
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--gold-dim);
}

.dash-close-btn {
  background: none;
  border: none;
  color: rgba(240, 230, 200, .4);
  font-size: 1.1rem;
  cursor: pointer;
  padding: .2rem .5rem;
  transition: color .2s;
}

.dash-close-btn:hover {
  color: var(--gold);
}

/* ─── Dashboard Body ────────────────────────────── */

.dash-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ─── Dashboard Nav ─────────────────────────────── */

.dash-nav {
  width: 190px;
  flex-shrink: 0;
  background: var(--panel2, #1a1610);
  border-right: 1px solid var(--border);
  padding: .6rem 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.dash-nav-btn {
  width: 100%;
  padding: .55rem 1rem .55rem 1.2rem;
  background: transparent;
  border: none;
  color: rgba(240, 230, 200, .45);
  font-family: 'Cinzel', serif;
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: all .18s;
  display: flex;
  align-items: center;
  gap: .55rem;
  border-left: 3px solid transparent;
}

.dash-nav-btn:hover {
  color: var(--parchment);
  background: rgba(255, 255, 255, .04);
}

.dash-nav-btn.active {
  color: var(--gold);
  background: rgba(201, 168, 76, .07);
  border-left-color: var(--gold);
}

.dash-nav-icon {
  font-size: 1rem;
  width: 1.2rem;
  text-align: center;
  flex-shrink: 0;
}

/* ─── Dashboard Content Area ────────────────────── */

.dash-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.6rem 2rem;
}

.dash-content::-webkit-scrollbar {
  width: 3px;
}

.dash-content::-webkit-scrollbar-track {
  background: transparent;
}

.dash-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ─── Dashboard Sections ────────────────────────── */

.dash-section {
  margin-bottom: 1.8rem;
}

.dash-section:last-child {
  margin-bottom: 0;
}

.dash-section-title {
  font-family: 'Cinzel', serif;
  font-size: .6rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: .45rem;
  margin-bottom: 1rem;
}

/* ─── Dashboard Fields ──────────────────────────── */

.dash-field {
  margin-bottom: .9rem;
}

.dash-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dash-label {
  font-family: 'Cinzel', serif;
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(240, 230, 200, .55);
  display: block;
  margin-bottom: .35rem;
}

.dash-sublabel {
  font-size: .72rem;
  font-style: italic;
  color: rgba(240, 230, 200, .3);
  margin-top: .15rem;
  display: block;
}

.dash-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--border);
  color: var(--parchment);
  font-family: 'EB Garamond', serif;
  font-size: 0.92rem;
  padding: .45rem .65rem;
  border-radius: 3px;
  outline: none;
  transition: border-color .2s;
}

.dash-input:focus {
  border-color: var(--gold);
}

.dash-input[readonly] {
  opacity: .45;
  cursor: default;
}

.dash-row {
  display: flex;
  gap: .6rem;
}

/* ─── Dashboard Buttons ─────────────────────────── */

.dash-save-btn {
  padding: .45rem .9rem;
  background: linear-gradient(135deg, rgba(90, 169, 255, .7), rgba(79, 209, 197, .6));
  border: none;
  color: #0F1217;
  font-family: 'Cinzel', serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .2s;
  border-radius: 3px;
}

.dash-save-btn:hover {
  filter: brightness(1.12);
}

.dash-save-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.dash-danger-btn {
  padding: .45rem .9rem;
  font-family: 'Cinzel', serif;
  font-size: .65rem;
  background: transparent;
  border: 1px solid rgba(192, 57, 43, .4);
  color: rgba(245, 101, 101, .7);
  cursor: pointer;
  border-radius: 3px;
  transition: all .2s;
}

.dash-danger-btn:hover {
  border-color: #c0392b;
  color: #e74c3c;
  background: rgba(192, 57, 43, .1);
}

/* ─── Dashboard Toggle Rows ─────────────────────── */

.dash-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .35rem 0;
}

.dash-toggle-label {
  font-family: 'EB Garamond', serif;
  font-size: .88rem;
  color: var(--parchment, #e6edf3);
}

.dash-toggle-desc {
  font-size: .72rem;
  font-style: italic;
  color: rgba(240, 230, 200, .35);
  margin-top: .1rem;
}

/* ─── Custom Toggle Switch ──────────────────────── */

.dash-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.dash-toggle input {
  display: none;
}

.dash-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background .2s, border-color .2s;
}

.dash-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: rgba(240, 230, 200, .35);
  border-radius: 50%;
  transition: transform .2s, background .2s;
}

.dash-toggle input:checked ~ .dash-toggle-track {
  background: rgba(90, 169, 255, .2);
  border-color: var(--color-accent-primary, #5AA9FF);
}

.dash-toggle input:checked ~ .dash-toggle-thumb {
  transform: translateX(16px);
  background: var(--color-accent-primary, #5AA9FF);
}

/* ─── Dashboard Select ──────────────────────────── */

.dash-select {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--border);
  color: var(--parchment);
  font-family: 'EB Garamond', serif;
  font-size: 0.92rem;
  padding: .45rem .65rem;
  border-radius: 3px;
  outline: none;
  transition: border-color .2s;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.dash-select:focus {
  border-color: var(--gold);
}

/* ─── Avatar Picker Grid ────────────────────────── */

.dash-avatar-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: .4rem;
}

.dash-avatar-opt {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .2);
  transition: all .18s;
}

.dash-avatar-opt:hover {
  border-color: var(--gold-dim);
  background: rgba(201, 168, 76, .1);
}

.dash-avatar-opt.selected {
  border-color: var(--gold);
  background: rgba(201, 168, 76, .15);
}

/* ─── Dashboard Feedback Text ───────────────────── */

.dash-success {
  color: #27ae60;
  font-size: .72rem;
  font-family: 'EB Garamond', serif;
  font-style: italic;
}

.dash-error {
  color: #e74c3c;
  font-size: .72rem;
  font-family: 'EB Garamond', serif;
  font-style: italic;
}

/* ─── Dashboard Footer ──────────────────────────── */

.dash-footer {
  padding: .65rem 1.2rem;
  border-top: 1px solid var(--border);
  background: var(--panel2, #1a1610);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-footer-note {
  font-size: .62rem;
  font-family: 'Cinzel', serif;
  letter-spacing: .1em;
  color: rgba(240, 230, 200, .2);
}

.dash-signout-btn {
  background: transparent;
  border: 1px solid rgba(192, 57, 43, .35);
  color: rgba(245, 101, 101, .6);
  font-family: 'Cinzel', serif;
  font-size: .62rem;
  letter-spacing: .12em;
  padding: .3rem .75rem;
  cursor: pointer;
  transition: all .2s;
}

.dash-signout-btn:hover {
  border-color: #c0392b;
  color: #e74c3c;
}
