/* Shared auth modal — uses theme.css design tokens */

.auth-link { color: var(--text-secondary); }
.auth-link:hover { color: var(--accent); }
.auth-forgot {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.25rem 0 0;
  margin: -0.25rem 0 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  text-align: left;
}
.auth-forgot:hover { color: var(--accent); }
.auth-user { color: var(--accent); font-size: 0.9375rem; }
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.auth-modal-overlay.open { display: flex; }
.auth-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  position: relative;
}
.auth-modal h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 1.25rem;
  color: var(--text-primary);
}
.auth-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.auth-tab {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
}
.auth-tab.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.auth-tab:hover:not(.active) { border-color: var(--text-muted); color: var(--text-primary); }
.auth-form .form-field { margin-bottom: 1rem; }
.auth-form .form-field label {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.auth-form .form-field input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--input-bg, #070a10);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}
.auth-form .form-field input:focus { border-color: rgba(201, 162, 39, 0.6); }
.auth-form .btn { width: 100%; margin-top: 0.5rem; }
.auth-divider { text-align: center; margin: 1rem 0; color: var(--text-secondary); font-size: 0.875rem; }
.auth-msg { font-size: 0.9375rem; margin-top: 0.75rem; min-height: 1.25rem; }
.auth-msg.error { color: #e57373; }
.auth-msg.success { color: #81c784; }
.auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.auth-close:hover { color: var(--text-primary); }
.auth-modal-wrapper { position: relative; }

input.is-readonly {
  opacity: 0.9;
  cursor: not-allowed;
}

