/* Login / register page styles */

#auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem 1rem;
}

.auth-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
}

/* Centred logo wrapper on login page */
.logo-center {
  display: flex;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.auth-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab {
  flex: 1;
  background: none;
  border: none;
  padding: 0.7rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--muted);
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.tab.active {
  color: var(--primary-dark);
  border-bottom: 2.5px solid var(--primary-dark);
  margin-bottom: -2px;
  font-weight: 700;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-form input,
.auth-form select {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--card);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.auth-form input:focus,
.auth-form select:focus { border-color: var(--primary); }

.auth-form button {
  padding: 0.9rem;
  background: var(--text);      /* black button */
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  cursor: pointer;
  min-height: 52px;
  transition: opacity 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.auth-form button:active  { opacity: 0.85; transform: scale(0.98); }
.auth-form button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.form-error {
  font-size: 0.88rem;
  color: var(--brand-red);
  min-height: 1.2em;
  text-align: center;
}
