/* DOOMSDAY — auth pages (login/register/reset/verify) + account settings.
   2026-08-06 auth migration. Reuses the global CSS variables. */

.auth-wrap {
  min-height: calc(100vh - var(--nav-height, 70px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 4rem;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-secondary, #111);
  border: 1px solid var(--toxic-green-dim, #7a0a0a);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.auth-card.auth-card-wide { max-width: 720px; }

.auth-title {
  font-family: var(--font-heading, 'Russo One', sans-serif);
  color: var(--toxic-green-bright, #ef3a3a);
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
}

.auth-subtitle {
  color: var(--text-secondary, #888);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

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

.auth-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary, #888);
  margin-bottom: 0.35rem;
}

.auth-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--bg-tertiary, #1a1a1a);
  border: 1px solid #333;
  border-radius: 8px;
  color: var(--text-primary, #e0e0e0);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.auth-input:focus {
  outline: none;
  border-color: var(--toxic-green, #c41e1e);
  box-shadow: 0 0 0 2px rgba(196, 30, 30, 0.15);
}

.auth-btn {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--toxic-green, #c41e1e);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading, 'Russo One', sans-serif);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.auth-btn:hover { background: var(--toxic-green-bright, #ef3a3a); }
.auth-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.auth-btn-outline {
  background: transparent;
  border: 1px solid var(--toxic-green-dim, #7a0a0a);
  color: var(--text-primary, #e0e0e0);
}
.auth-btn-outline:hover { border-color: var(--toxic-green, #c41e1e); background: rgba(196, 30, 30, 0.08); }

.auth-msg {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  min-height: 1.2em;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  display: none;
}
.auth-msg.auth-msg-error { display: block; color: #ff9d9d; background: rgba(196, 30, 30, 0.12); border: 1px solid rgba(196, 30, 30, 0.4); }
.auth-msg.auth-msg-ok { display: block; color: #9fe6a0; background: rgba(63, 185, 80, 0.10); border: 1px solid rgba(63, 185, 80, 0.35); }

.auth-links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  font-size: 0.85rem;
}

.auth-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--text-secondary, #999);
  margin-bottom: 0.7rem;
  line-height: 1.45;
}
.auth-check input { margin-top: 0.2rem; accent-color: var(--toxic-green, #c41e1e); }

.auth-row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.auth-row .auth-btn { width: auto; }

.auth-note {
  font-size: 0.8rem;
  color: var(--text-secondary, #888);
  margin-top: 1rem;
  line-height: 1.5;
}

.auth-section {
  border-top: 1px solid #262626;
  padding-top: 1.4rem;
  margin-top: 1.6rem;
}
.auth-section-title {
  font-family: var(--font-heading, 'Russo One', sans-serif);
  font-size: 1rem;
  color: var(--text-primary, #e0e0e0);
  margin: 0 0 0.9rem;
}

.auth-steam-box {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--bg-tertiary, #1a1a1a);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 0.9rem 1rem;
}
.auth-steam-box img { width: 44px; height: 44px; border-radius: 8px; }
.auth-steam-box .auth-steam-name { font-weight: 700; color: var(--text-primary, #e0e0e0); }
.auth-steam-box .auth-steam-id { font-size: 0.78rem; color: var(--text-secondary, #888); word-break: break-all; }

.auth-session-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid #262626;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary, #999);
}
.auth-session-row .auth-session-ua { color: var(--text-primary, #d5d5d5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
.auth-session-current { color: #9fe6a0; font-size: 0.75rem; }
.auth-session-revoke {
  background: none;
  border: 1px solid #4a4a4a;
  color: #ccc;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  font-size: 0.75rem;
}
.auth-session-revoke:hover { border-color: var(--toxic-green, #c41e1e); color: #fff; }

.auth-status-ok { color: #9fe6a0; }
.auth-status-warn { color: var(--hazard-yellow, #ffb800); }
