/* styles/auth_style.css */

.auth-container {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8); /* Dark overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(4px);
}

.auth-card {
  background: var(--card-bg);
  width: 100%;
  max-width: 360px;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  text-align: center;
  border: 1px solid var(--border-subtle);
}

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

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

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

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form input {
  padding: 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
}

.auth-btn {
  width: 100%;
  padding: 0.9rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary { background: var(--muted-strong); }

.text-btn {
  margin-top: 1rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

.auth-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #e11d48; /* Red for errors */
  min-height: 1.2em;
}
