:root {
  --sd-coral: #EC5D50;
  --sd-blue: #3DA4DF;
  --sd-blue-hover: #2f91c9;
  --sd-slate: #3A4554;
  --sd-slate-dark: #2b3442;
  --sd-gray: #A9ABB8;
  --sd-bg: #ECECEC;
  --sd-border: #E0E3EA;
  --sd-text-muted: #6b7280;
  --sd-error: #EC5D50;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html, body {
  height: 100%;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--sd-slate);
}

a { color: var(--sd-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 1fr;
  min-height: 100vh;
  background: #fff;
}

.auth-left {
  padding: 4rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.auth-right {
  background: linear-gradient(160deg, var(--sd-slate) 0%, var(--sd-slate-dark) 100%);
  padding: 4rem 4.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-right::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(236, 93, 80, .28) 0%, transparent 70%);
  pointer-events: none;
}

.auth-right::before {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(61, 164, 223, .22) 0%, transparent 70%);
  pointer-events: none;
}

.auth-right > * {
  position: relative;
  z-index: 1;
  max-width: 460px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 2.5rem;
  text-decoration: none;
  color: var(--sd-slate);
}
.logo-row:hover { text-decoration: none; }

.logo-dot {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--sd-coral), var(--sd-blue));
}

.logo-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--sd-slate);
  letter-spacing: -.015em;
}

.eyebrow {
  font-size: 12px;
  color: var(--sd-gray);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
  margin-bottom: .5rem;
}

.title {
  font-size: 32px;
  font-weight: 600;
  color: var(--sd-slate);
  margin: 0 0 .6rem;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.subtitle-small {
  font-size: 14.5px;
  color: var(--sd-text-muted);
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.45;
}
.subtitle-small a { color: var(--sd-blue); font-weight: 500; }

.auth-banner {
  margin-bottom: 1.25rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.45;
}
.auth-banner.is-error { background: #fdecea; color: #a62e21; border: 1px solid #f5c6bf; }
.auth-banner.is-success { background: #e9f5fc; color: #1d5f83; border: 1px solid #bfe0f2; }

.field-group { margin-bottom: 1.15rem; }

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--sd-slate);
  margin-bottom: .4rem;
  display: block;
}

.field {
  border: 1px solid var(--sd-border);
  border-radius: 8px;
  height: 46px;
  padding: 0 .95rem;
  background: #fff;
  position: relative;
  display: flex;
  align-items: center;
  transition: border-color .15s, box-shadow .15s;
}
.field:focus-within {
  border-color: var(--sd-blue);
  box-shadow: 0 0 0 3px rgba(61, 164, 223, .15);
}
.field.is-invalid {
  border-color: var(--sd-error);
  box-shadow: 0 0 0 3px rgba(236, 93, 80, .12);
}
.field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
  color: var(--sd-slate);
  font-family: inherit;
  padding: 0;
  height: 100%;
}
.field input::placeholder { color: var(--sd-gray); }

.toggle-eye {
  border: 0;
  background: transparent;
  color: var(--sd-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 0 0 .5rem;
  font-family: inherit;
}
.toggle-eye:hover { color: var(--sd-slate); }

.field-error {
  font-size: 12.5px;
  color: var(--sd-error);
  margin-top: .35rem;
}

.strength-bar {
  height: 3px;
  margin-top: .5rem;
  display: flex;
  gap: 2px;
}
.strength-seg {
  flex: 1;
  background: var(--sd-bg);
  border-radius: 2px;
  transition: background .2s;
}
.strength-seg.on-weak { background: var(--sd-coral); }
.strength-seg.on-strong { background: var(--sd-blue); }

.strength-label {
  font-size: 11.5px;
  color: var(--sd-text-muted);
  margin-top: .35rem;
  min-height: 14px;
}

.btn-primary {
  background: var(--sd-blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  height: 48px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: .6rem;
  letter-spacing: -.005em;
  font-family: inherit;
  transition: background .15s;
}
.btn-primary:hover { background: var(--sd-blue-hover); }
.btn-primary:disabled { background: var(--sd-gray); cursor: not-allowed; }

.legal {
  font-size: 12px;
  color: var(--sd-gray);
  margin-top: 1.25rem;
  text-align: center;
  line-height: 1.5;
}
.legal a {
  color: var(--sd-text-muted);
  text-decoration: underline;
  text-decoration-color: var(--sd-border);
}

.auth-foot {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 13.5px;
  color: var(--sd-text-muted);
}
.auth-foot a { color: var(--sd-blue); font-weight: 500; }

/* Right panel content */
.right-eyebrow {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .55);
  font-weight: 500;
  margin-bottom: .65rem;
}

.right-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 2rem;
  letter-spacing: -.015em;
  color: #fff;
}

.right-lead {
  font-size: 15.5px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.5;
  margin: 0;
}

.bullet-list { list-style: none; margin: 0; padding: 0; }
.bullet {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1.05rem;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .85);
  line-height: 1.5;
  font-weight: 400;
}
.check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sd-coral);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.proof {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  line-height: 1.45;
}

.success-panel {
  padding: 1.75rem 1.5rem;
  background: #f7f9fc;
  border: 1px solid var(--sd-border);
  border-radius: 10px;
  text-align: left;
}
.success-panel h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--sd-slate);
  margin: 0 0 .5rem;
  letter-spacing: -.01em;
}
.success-panel p {
  font-size: 14px;
  color: var(--sd-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Tablet */
@media (max-width: 991px) {
  .auth-shell { grid-template-columns: 1fr 1fr; }
  .auth-left, .auth-right { padding: 3rem 2.5rem; }
  .title { font-size: 28px; }
  .right-title { font-size: 24px; }
}

/* Mobile */
@media (max-width: 767px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .auth-right {
    order: -1;
    padding: 2rem 1.5rem;
  }
  .auth-right.is-hidden-mobile { display: none; }
  .auth-right.is-compact .right-title { font-size: 18px; margin-bottom: 1rem; }
  .auth-right.is-compact .bullet { font-size: 13px; margin-bottom: .5rem; }
  .auth-right.is-compact .proof { display: none; }
  .auth-right.is-compact::after,
  .auth-right.is-compact::before { width: 160px; height: 160px; }
  .auth-left {
    padding: 2rem 1.5rem 3rem;
    max-width: 100%;
  }
  .title { font-size: 26px; }
  .logo-row { margin-bottom: 1.5rem; }
  .field { height: 44px; }
  .btn-primary { height: 46px; }
}
