:root {
  --bg: #F3F3F6;
  --card: #FFFFFF;
  --ink: #15161C;
  --muted: #8B8F98;
  --line: #ECECF0;
  --purple: #6C4CF1;
  --purple-dark: #5A3CE0;
  --purple-soft: #EFEAFE;
  --purple-stripe: #D9CCFB;
  --yellow: #F2E852;
  --green: #22C55E;
  --green-soft: #DEFBE8;
  --red: #EF4A6D;
  --red-soft: #FDE4E9;
  --amber: #F2A93B;
  --amber-soft: #FCEDD6;
  --blue: #4AAEEF;
  --blue-soft: #E2F3FD;
  --orange: #FDBA74;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
}

.muted {
  color: var(--muted);
}

/* Shell */
.auth-shell {
  min-height: 100vh;
  display: flex;
}

.auth-visual {
  flex: 0 0 44%;
  max-width: 560px;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-visual::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 76, 241, .55) 0%, transparent 70%);
  pointer-events: none;
}

.auth-visual::after {
  content: '';
  position: absolute;
  bottom: -140px;
  left: -100px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 232, 82, .18) 0%, transparent 70%);
  pointer-events: none;
}

.auth-visual .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.auth-visual .brand img {
  width: 34px;
  height: 34px;
}

.auth-visual .brand span {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.auth-visual .pitch {
  position: relative;
  z-index: 1;
}

.auth-visual .pitch h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  max-width: 420px;
}

.auth-visual .pitch p {
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
  max-width: 380px;
  line-height: 1.6;
}

.auth-visual .pitch-card {
  margin-top: 28px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(6px);
  max-width: 380px;
}

.auth-visual .pitch-card .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.auth-visual .pitch-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}

.auth-visual .pitch-card span {
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}

.auth-visual .foot {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}

.auth-form-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  min-width: 0;
  margin: 0 auto;
}

.auth-card .mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-card .mobile-brand img {
  width: 30px;
  height: 30px;
}

.auth-card .mobile-brand span {
  font-size: 17px;
  font-weight: 800;
}

.auth-card .step-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--purple-soft);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.auth-card h1 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
}

.auth-card .subtitle {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 26px;
  line-height: 1.55;
}

.auth-card .subtitle strong {
  color: var(--ink);
}

/* Fields */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.input-group-auth {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.input-group-auth:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

.input-group-auth i {
  color: var(--muted);
  font-size: 14.5px;
}

.input-group-auth input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  padding: 12px 10px;
  font-size: 13.5px;
  color: var(--ink);
  font-family: inherit;
}

.input-group-auth button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  padding: 6px;
  cursor: pointer;
}

.input-group-auth button:hover {
  color: var(--ink);
}

.input-group-auth.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.field-error {
  display: none;
  color: var(--red);
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 6px;
}

.field-error.show {
  display: block;
}

.field-hint {
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 6px;
}

.form-check-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.form-check-auth input {
  width: 17px;
  height: 17px;
  accent-color: var(--purple);
  cursor: pointer;
}

.link-purple {
  color: var(--purple);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.link-purple:hover {
  color: var(--purple-dark);
  text-decoration: underline;
}

.btn-auth {
  width: 100%;
  border: none;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 14px;
  transition: background .15s ease, transform .1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-auth:hover {
  background: var(--purple-dark);
}

.btn-auth:active {
  transform: scale(.98);
}

.btn-auth:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.btn-auth-outline {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 14px;
  transition: all .15s ease;
}

.btn-auth-outline:hover {
  background: var(--bg);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-footer-note {
  text-align: center;
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
}

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

.strength-meter span {
  height: 4px;
  flex: 1;
  border-radius: 999px;
  background: var(--line);
  transition: background .2s ease;
}

.strength-label {
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 6px;
  color: var(--muted);
}

.success-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}

.alert-auth {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

.alert-auth i {
  margin-top: 1px;
}

@media (max-width: 992px) {
  .auth-visual {
    display: none;
  }

  .auth-card .mobile-brand {
    display: flex;
  }
}
