:root {
  --auth-bg: #f8fafc;
  --auth-accent: #6c63ff;
  --auth-accent-hover: #4f46e5;
  --auth-text: #1d1a26;
  --auth-text-muted: #6b7280;
  --auth-border: #e2e8f0;
}

.auth-page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--auth-bg);
  padding: 2rem 1rem;
}

.auth-card {
  background: #ffffff;
  width: 100%;
  max-width: 450px;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--auth-border);
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.4rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  border: none;
  background: transparent;
  font-weight: 600;
  color: var(--auth-text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: #ffffff;
  color: var(--auth-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.auth-form-container {
  display: none;
}

.auth-form-container.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--auth-text);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--auth-text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--auth-text);
}

.form-group input {
  padding: 0.8rem 1rem;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #fcfcfd;
}

.form-group input:focus {
  outline: none;
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
  background: #ffffff;
}

.auth-submit-btn {
  background: var(--auth-accent);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.auth-submit-btn:hover {
  background: var(--auth-accent-hover);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  color: var(--auth-text-muted);
  font-size: 0.88rem;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--auth-border);
}

.auth-divider span {
  padding: 0 1rem;
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem;
  background: #ffffff;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  font-weight: 600;
  color: var(--auth-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.google-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.auth-message {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.25rem;
}

.auth-message.error { color: #ef4444; }
.auth-message.success { color: #10b981; }

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
    border: none;
    box-shadow: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
