/* StreamClipper — centered-card layout & auth-specific components.
   Linked alongside app.css by /auth, /auth/forgot-password, /auth/reset-password,
   /admin/login, and /new-job. */

body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 32px 0;
  background: var(--bg);
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: var(--space-6);
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--space-8);
}

.auth-logo a {
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
}

.auth-logo .lang-switcher {
  margin-top: var(--space-3);
  width: fit-content;
  margin-inline: auto;
}

.auth-card {
  background: var(--bg-card);
  padding: var(--space-8);
  border: 0;
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}

.auth-card h2 {
  margin-bottom: var(--space-2);
  font-size: 22px;
}

.auth-card > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

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

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

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

.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
}

.divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 20px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  min-height: 44px;
  border-radius: var(--radius-control);
}

.btn-oauth:hover {
  background: var(--surface-soft);
  border-color: var(--text-muted);
}

.btn-oauth svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Apple sits last on desktop but first on phones, where it is the one-tap
   option. Same size and style either way — the HIG requires it to be no less
   prominent than the others. */
@media (max-width: 640px) {
  .btn-apple {
    order: -1;
  }
}

.btn-email-toggle {
  width: 100%;
  font-family: inherit;
}

.btn-email-toggle[aria-expanded="true"] {
  background: var(--surface-soft);
}

.auth-form {
  margin-top: 14px;
}

.tos-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  cursor: pointer;
}

.tos-check input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.tos-check a {
  color: var(--text-accent);
  text-decoration: underline;
}

.auth-legal-footer {
  margin-top: var(--space-6);
  text-align: center;
  font-size: 12px;
}

.auth-legal-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.auth-legal-footer a:hover {
  color: var(--text-accent);
}

.resend-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--text-accent);
  text-decoration: underline;
  font-size: 12px;
}

.forgot-link {
  display: block;
  text-align: center;
  margin-top: var(--space-3);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.forgot-link:hover {
  color: var(--text-accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text);
}

.back-link.center {
  display: block;
  text-align: center;
  margin-top: var(--space-4);
}
