/* Styles for the login/signup modal injected by js/auth-modal.js.
   Previously ~80 inline style="" attributes baked into the JS template —
   moved here so the JS only deals with behavior. */

#auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  overflow-y: auto;
}

.auth-modal {
  width: 100%;
  max-width: 420px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.auth-modal-bar { height: 6px; background: linear-gradient(90deg, var(--accent), #ff7c5f); }

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  z-index: 2;
}

.auth-modal-body { padding: 2rem 2rem 0.5rem; }

.auth-modal-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 3px;
  color: var(--text);
  margin-bottom: 1rem;
}

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

.auth-tab {
  flex: 1;
  padding: 0.75rem 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
}

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

.auth-field { margin-bottom: 1rem; }
.auth-field label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.auth-field input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.auth-field input:focus { border-color: var(--accent); }

.auth-forgot { text-align: right; margin-bottom: 1.2rem; }
.auth-forgot a { color: var(--muted); font-size: 0.78rem; transition: color 0.2s ease; }
.auth-forgot a:hover { color: var(--text); }

.auth-submit {
  width: 100%;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  color: #fff;
  padding: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 1.2rem;
  transition: background 0.2s ease;
}
.auth-submit:hover { background: var(--accent-hover); }

.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.2rem; }
.auth-divider span { flex: 1; height: 1px; background: var(--border); }
.auth-divider strong { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

.auth-oauth {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.auth-oauth:hover { border-color: #4a4a5a; }

.auth-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1rem; }

.auth-role-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-role {
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}
.auth-role.active { border-color: var(--accent); background: rgba(255,60,95,0.1); color: var(--accent); }

.auth-legal { text-align: center; color: var(--muted); font-size: 0.78rem; padding: 1.2rem 0 1.5rem; }
.auth-legal a { color: var(--accent); }
