/* ═══════════════════════════════════════════════════
   AUTH MODAL STYLES — append to style.css or include separately
═══════════════════════════════════════════════════ */

/* Overlay */
#authOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9100;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
#authOverlay.open { display: flex; }

/* Modal box */
.auth-modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 100%;
  max-width: 440px;
  position: relative;
  overflow: hidden;
  animation: modalIn 0.25s ease both;
}
.auth-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.auth-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
  z-index: 10;
}
.auth-modal-close:hover { color: var(--white); }

/* Panels */
.auth-panel { display: none; padding: 40px; }
.auth-panel.active { display: block; }

/* Header */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.auth-logo .logo-icon { font-size: 24px; }
.auth-logo .logo-text { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: 2px; }
.auth-logo .logo-accent { color: var(--gold); }
.auth-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  margin-bottom: 6px;
  text-align: center;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
  text-align: center;
}

/* Form fields */
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.auth-field label { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.auth-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.auth-input:focus { border-color: var(--gold-dim); }

/* Password strength */
.pw-strength { height: 3px; border-radius: 2px; margin-top: 6px; background: var(--border); overflow: hidden; }
.pw-strength-bar { height: 100%; width: 0%; transition: all 0.3s; border-radius: 2px; }
.pw-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Checkbox */
.auth-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.auth-check input[type=checkbox] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.auth-check label { font-size: 13px; color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.auth-check label a { color: var(--gold); }

/* Error message */
.auth-error {
  display: none;
  background: rgba(255,68,68,0.1);
  border: 1px solid rgba(255,68,68,0.3);
  color: #ff8888;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Submit button */
.auth-submit {
  width: 100%;
  padding: 13px;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 16px;
}
.auth-submit:hover:not(:disabled) { background: #fff; }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Links row */
.auth-links { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.auth-links a { color: var(--gold-dim); cursor: pointer; transition: color 0.2s; }
.auth-links a:hover { color: var(--gold); }
.auth-divider { text-align: center; font-size: 12px; color: var(--text-muted); margin: 16px 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* Confirm / success panels */
.auth-icon-big { font-size: 48px; text-align: center; margin-bottom: 16px; }
.auth-code-input {
  text-align: center;
  font-size: 28px;
  font-family: var(--font-mono);
  letter-spacing: 8px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 4px;
  padding: 14px;
  color: var(--gold);
  width: 100%;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 14px;
}
.auth-code-input:focus { border-color: var(--gold-dim); }
.auth-resend { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.auth-resend button {
  background: none; border: none; color: var(--gold-dim);
  cursor: pointer; font-size: 13px; font-family: var(--font-body);
  transition: color 0.2s;
}
.auth-resend button:hover { color: var(--gold); }
.auth-success-check { font-size: 56px; text-align: center; margin-bottom: 16px; }
