/* ============================================================
   ZEUS — auth.css
   Login / Account page + "Watch Party" player button.
   Uses the design tokens defined in style.css (:root) so the
   look stays consistent with the rest of the site.
   ============================================================ */

/* ============================================================
   LOGIN / ACCOUNT PAGE
   ============================================================ */
.login-container {
  max-width: 460px;
  margin: 0 auto;
}

.auth-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

/* ---- Tabs (Sign In / Sign Up) — pill system like .btn ---- */
.auth-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 11px 0;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.auth-tab:hover {
  color: var(--text-primary);
}
.auth-tab.active {
  background: #fff;
  color: #000;
}

/* ---- Form fields — same recipe as .search-input ---- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-label {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-secondary);
}
.auth-input {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  padding: 0 18px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.auth-input::placeholder {
  color: var(--text-tertiary);
}
.auth-input:focus {
  border-color: rgba(41, 151, 255, 0.65);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.18);
}
.auth-submit {
  margin-top: 18px;
  width: 100%;
}

/* ---- Divider + Generate Local Account ---- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 16px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border-subtle);
}
.auth-generate {
  width: 100%;
}

/* ---- Generated credentials panel ---- */
.auth-generated {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(48, 209, 88, 0.3);
  background: rgba(48, 209, 88, 0.07);
  border-radius: var(--radius-md);
}
.auth-generated-title {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
}
.auth-generated-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}
.auth-generated-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
}
.auth-generated-row code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--text-primary);
  word-break: break-all;
  background: rgba(0, 0, 0, 0.35);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
}
.auth-copy-btn {
  margin-top: 6px;
  padding: 11px 24px;
  font-size: 13.5px;
}
.auth-generated-hint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ---- Inline messages (validation / errors / success) ---- */
.auth-message {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
}
.auth-message.visible {
  display: block;
}
.auth-message--error {
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.35);
  color: #FF6961;
}
.auth-message--success {
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.35);
  color: var(--green);
}

/* ---- Signed-in card ---- */
.auth-account-card {
  text-align: center;
  padding: 40px 28px;
}
.auth-account-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--accent-primary);
}
.auth-account-avatar svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
.auth-account-email {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  word-break: break-all;
}
.auth-account-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.auth-account-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* ============================================================
   WATCH PARTY BUTTON (player chrome — base look: .chrome-btn)
   ZEUS lightning-yellow variant, matching the site accent.
   ============================================================ */
.chrome-btn--watchparty {
  border-color: rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.07);
}
.chrome-btn--watchparty:hover {
  border-color: rgba(255, 215, 0, 0.55);
  background: rgba(255, 215, 0, 0.12);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.15);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .auth-card {
    padding: 22px 18px;
  }
  .auth-account-card {
    padding: 32px 20px;
  }
}
