/* ═══════════════════════════════════════
   INKCRAFT RP — Auth Page Styles
   Used by: html/auth.html
═══════════════════════════════════════ */

/* ── Page layout: split left/right ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  position: relative;
  z-index: 1;
}

/* ══════════════════════
   ANIMATED BACKGROUND
══════════════════════ */
.auth-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 20% 50%, rgba(201,168,76,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(74,42,107,0.1)  0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 90%, rgba(26,107,90,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 50%, rgba(26,23,18,1) 40%, rgba(13,11,8,1) 100%);
  animation: authBgShift 10s ease-in-out infinite alternate;
}
@keyframes authBgShift {
  0%   { opacity: 0.85; }
  100% { opacity: 1; }
}

.auth-stars {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.auth-star {
  position: absolute; border-radius: 50%; background: white;
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
  opacity: 0;
}
@keyframes twinkle {
  0%,100% { opacity: 0;    transform: scale(1);   }
  50%     { opacity: 0.7;  transform: scale(1.3); }
}

.auth-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.auth-particle {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: var(--gold-dim);
  animation: floatUp var(--dur, 8s) ease-in-out infinite var(--delay, 0s);
  opacity: 0;
}
@keyframes floatUp {
  0%   { opacity: 0;   transform: translateY(0) scale(0.5); }
  20%  { opacity: 0.5; }
  80%  { opacity: 0.3; }
  100% { opacity: 0;   transform: translateY(-120px) scale(1); }
}

/* ══════════════════════
   VERIFICATION BANNER
══════════════════════ */
/* Inline verification notice inside login form */
.verify-notice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(122,98,48,0.12);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  margin-bottom: 4px;
  animation: fadeIn 0.3s ease;
}
.verify-notice-icon { font-size: 1.4rem; text-align: center; }
.verify-notice-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--parchment-dim);
  line-height: 1.5;
  text-align: center;
}
.verify-notice-text strong { color: var(--gold); }
.verify-notice-resend {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 14px;
  color: var(--gold-dim);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
  align-self: center;
}
.verify-notice-resend:hover { border-color: var(--border-bright); color: var(--gold); }
.verify-notice-resend:disabled { opacity: 0.5; cursor: not-allowed; }

/* ══════════════════════
   LEFT LORE PANEL
══════════════════════ */
.auth-lore {
  width: 42%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

/* Subtle animated glow behind sigil */
.auth-lore::before {
  content: '';
  position: absolute;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  animation: loreglow 4s ease-in-out infinite alternate;
}
@keyframes loreglow {
  0%   { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.auth-lore-inner {
  position: relative; z-index: 1;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  animation: fadeIn 0.8s ease both;
}

/* Sigil */
.auth-sigil {
  width: 120px; height: 120px;
  margin-bottom: 28px;
}
.auth-sigil svg { width: 100%; height: 100%; }
.auth-sigil-ring {
  animation: rotateSlow 24s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes rotateSlow { to { transform: rotate(360deg); } }

.auth-lore-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(201,168,76,0.3), 0 2px 4px rgba(0,0,0,0.8);
  margin-bottom: 8px;
  display: inline-block;
  animation: titlePulse 3s 1s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}
.auth-lore-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--parchment-dim);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.auth-lore-divider {
  display: flex; align-items: center; gap: 12px;
  width: 80%; margin: 0 auto 24px;
}
.auth-lore-divider::before,
.auth-lore-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.auth-lore-divider span { color: var(--gold-dim); font-size: 0.8rem; }

.auth-lore-quote {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 300px;
  margin-bottom: 32px;
}

.auth-deity-hints {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 10px;
  margin-top: 8px;
}
.auth-deity-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
  transition: transform 0.2s;
}
.auth-deity-hint:hover { transform: translateY(-3px); }
.auth-deity-hint img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  object-position: top;
  transition: border-color 0.2s;
}
.auth-deity-hint:hover img { border-color: var(--border-bright); }
.auth-deity-hint span {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
}

/* ══════════════════════
   RIGHT FORM PANEL
══════════════════════ */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
}

.auth-content {
  width: 100%;
  max-width: 400px;
  animation: fadeUp 0.7s 0.2s ease both;
}

.auth-back {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.auth-back:hover { color: var(--gold); }

/* ── Tabs ── */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.auth-tab {
  padding: 14px 12px;
  background: none; border: none;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.auth-tab:first-child { border-right: 1px solid var(--border); }
.auth-tab:hover { color: var(--text); background: rgba(255,255,255,0.02); }
.auth-tab.active { color: var(--gold); }
.auth-tab.active::after {
  content: ''; position: absolute;
  bottom: -1px; left: 0; right: 0; height: 1px;
  background: var(--gold);
}

/* ── Forms ── */
.auth-form {
  display: none;
  flex-direction: column;
  gap: 16px;
}
.auth-form.active { display: flex; }

/* ── Password toggle ── */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap .field-input { padding-right: 42px; }
.input-eye {
  position: absolute; right: 12px;
  background: none; border: none;
  color: var(--text-dim); cursor: pointer;
  font-size: 0.85rem; padding: 4px;
  opacity: 0.5; transition: opacity 0.2s;
  line-height: 1;
}
.input-eye:hover { opacity: 1; }

/* ── Role cards ── */
.role-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.role-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255,255,255,0.02);
  text-align: center;
}
.role-card:hover { border-color: var(--border-bright); }
.role-card.selected {
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
}
.role-card-name {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 4px;
}
.role-card-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.3;
}

/* ── Field hint ── */
.field-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 2px;
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════
   FORGOT PASSWORD
══════════════════════ */
.forgot-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}
.forgot-link {
  background: none; border: none;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.forgot-link:hover { color: var(--gold); }

.forgot-panel {
  flex-direction: column;
  gap: 16px;
  animation: fadeUp 0.3s ease both;
}

.forgot-back {
  background: none; border: none;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  align-self: flex-start;
  margin-bottom: 4px;
}
.forgot-back:hover { color: var(--gold); }

.forgot-header { text-align: center; }
.forgot-icon { font-size: 2rem; margin-bottom: 8px; }
.forgot-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 6px;
}
.forgot-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
}

.reset-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(26,107,90,0.12);
  border: 1px solid rgba(26,107,90,0.4);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #5ecfb1;
  animation: fadeIn 0.3s ease;
}

/* ══════════════════════
   RESPONSIVE
══════════════════════ */
@media (max-width: 768px) {
  .auth-page { flex-direction: column; }

  .auth-lore {
    width: 100%;
    padding: 48px 24px 32px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .auth-lore-title  { font-size: 1.8rem; }
  .auth-sigil       { width: 80px; height: 80px; }
  .auth-lore-quote  { font-size: 0.85rem; margin-bottom: 20px; }
  .auth-deity-hints { gap: 8px; }
  .auth-deity-hint img { width: 44px; height: 44px; }

  .auth-right { padding: 32px 24px 48px; }
  .auth-content { max-width: 100%; }
}

@media (max-width: 480px) {
  .auth-lore { padding: 32px 16px 24px; }
  .auth-right { padding: 24px 16px 40px; }
  .verify-banner-text { font-size: 0.78rem; }
  .auth-deity-hint img { width: 40px; height: 40px; }
}