:root {
  --gradient: linear-gradient(90deg,#6301be 0%, #9d01c0 50%, #cf114a 100%);
  --dark-bg: #121212;
  --card-bg: #1f1f1f;
  --border: #2c2c2c;
  --text: #e0e0e0;
  --muted: #bbbbbb;
  --transition: 0.25s ease;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  background: var(--dark-bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* — Brand Side — */
.brand-side {
  background: linear-gradient(90deg,#6301be 0%, #9d01c0 50%, #cf114a 100%);
  color: #fff;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.brand-side h1 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 800;
}
.brand-side p {
  font-size: 1rem;
  opacity: 0.9;
}
.switcher {
  display: flex;
  gap: 8px;
}
.switcher button {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.switcher button.active {
  background: #fff;
  color: #8400ff;
}

/* — Form Side — */
.form-side {
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.tab-btn {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active {
  background: var(--gradient);
  color: #ffffff;
  border: none;
}

/* — Fields & Inputs — */
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.field label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--text);
  background: #2a2a2a;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: var(--transition);
}
.field input:focus {
  border-color: #8400ff;
  box-shadow: 0 0 0 3px rgba(132,0,255,0.15);
}

/* — Helper & Divider — */
.helper {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.helper a {
  color: #8400ff;
  text-decoration: none;
}
.divider {
  position: relative;
  text-align: center;
  font-size: 0.875rem;
  margin: 16px 0;
  color: var(--muted);
}
.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.divider::before { left: 0; }
.divider::after { right: 0; }
.divider span {
  padding: 0 8px;
  background: var(--card-bg);
}

/* — Buttons — */
.btn {
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--gradient);
  width: 100%;
  color: #fff;
  border-radius: 10px;
}
.btn-primary:hover {
  opacity: 0.85;
}
.btn-outline {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid #8400ff;
  background: transparent;
  color: #8400ff;
}

/* — Utility — */
.hidden { display: none; }

@media (max-width: 1000px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  .brand-side { display: none; }
  .form-side { padding: 32px; }
}

.problem {
  margin-bottom: 10px;
  color: #f94016;
  font-weight: 600;
}