* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left: colorful branded panel */
.auth-brand {
  position: relative;
  background: linear-gradient(160deg, #2f27ce 0%, #6d28d9 55%, #db2777 100%);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  overflow: hidden;
}

.auth-brand::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -100px;
  right: -100px;
}

.auth-brand::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  bottom: -60px;
  left: -60px;
}

.auth-brand__logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.auth-brand__body {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.auth-brand__body h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.auth-brand__body p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #ede9fe;
}

.auth-brand__foot {
  position: relative;
  z-index: 1;
  font-size: 12.5px;
  color: #ede9fe;
}

/* Right: form panel */
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #ffffff;
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-card__tabs {
  display: flex;
  gap: 6px;
  background: #f3f2fb;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 32px;
}

.auth-card__tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  color: #6b7280;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.auth-card__tab.active {
  background: #2f27ce;
  color: #ffffff;
}

.auth-card h1 {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.auth-card__subtitle {
  font-size: 13.5px;
  color: #6b7280;
  margin-bottom: 28px;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 7px;
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  transition: border-color 0.2s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: #2f27ce;
  box-shadow: 0 0 0 3px rgba(47, 39, 206, 0.12);
}

.auth-field__hint {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 6px;
}

.auth-field__error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 6px;
}

.auth-field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-submit {
  width: 100%;
  background: linear-gradient(90deg, #2f27ce, #7c3aed);
  color: #ffffff;
  border: none;
  padding: 14px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 6px;
  transition: opacity 0.2s ease;
}

.auth-submit:hover {
  opacity: 0.9;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0;
  color: #9ca3af;
  font-size: 12.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-footnote {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-top: 26px;
}

.auth-footnote a {
  color: #2f27ce;
  font-weight: 700;
  text-decoration: none;
}

.auth-success-banner {
  background: #dcfce7;
  color: #166534;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.auth-error-banner {
  background: #fee2e2;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.password-strength__bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
  transition: background 0.2s ease;
}

.password-strength__bar.weak { background: #ef4444; }
.password-strength__bar.medium { background: #f59e0b; }
.password-strength__bar.strong { background: #22c55e; }

.form-hidden { display: none; }

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    padding: 40px 30px;
    min-height: 220px;
  }

  .auth-brand__body h2 {
    font-size: 24px;
  }

  .auth-form-side {
    padding: 30px;
  }

  .auth-field--row {
    grid-template-columns: 1fr;
  }
}
