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

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
}

a { text-decoration: none; color: inherit; }

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

/* ── Left panel ── */
.auth-left {
  width: 38%;
  flex-shrink: 0;
  background: #2E2E2E;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
  display: flex;
  flex-direction: column;
  padding: 48px 44px;
  color: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}

.auth-tagline {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-tagline h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 12px;
}

.auth-tagline p {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  max-width: 280px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 36px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

.auth-feature::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #1F6F79;
  flex-shrink: 0;
}

.auth-footer {
  font-size: 11px;
  color: rgba(255,255,255,.25);
}

/* ── Right panel ── */
.auth-right {
  flex: 1;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  overflow-y: auto;
}

/* ── Card ── */
.auth-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
}

/* ── Card header ── */
.card-heading {
  margin-bottom: 28px;
}

.card-heading h1 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin-bottom: 4px;
}

.card-heading p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* ── Progress dots ── */
.progress-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
}

.dot.active { background: #1F6F79; }

.line {
  height: 2px;
  flex: 1;
  background: #e5e7eb;
}

.line.active { background: #1F6F79; }

/* ── Form ── */
form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  color: #111;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .15s, background .15s;
}

input::placeholder { color: #9ca3af; opacity: 1; }

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus { border-color: #1F6F79; background: #fff; }

/* OTP inputs */
input#otp-input,
input#reset-otp {
  letter-spacing: 8px;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  color: #111;
  padding: 14px 16px;
}

/* Password wrapper */
.password-field { position: relative; }

.password-field .eye-icon {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  opacity: .45;
  transition: opacity .15s;
  line-height: 1;
}

.password-field .eye-icon:hover { opacity: .9; }

/* ── Country select ── */
select.country-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  color: #111;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  appearance: none;
  transition: border-color .15s, background .15s;
}

select.country-select:focus { border-color: #1F6F79; background: #fff; }

/* ── Buttons ── */
button {
  padding: 13px 20px;
  border-radius: 12px;
  border: none;
  background: #1F6F79;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background .15s;
}

button:hover:not(:disabled) { background: #17565e; }
button:disabled { opacity: .45; cursor: not-allowed; }

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1.5px solid #e5e7eb;
}

.btn-secondary:hover:not(:disabled) { background: #e9eaec; }

/* ── Row layouts ── */
.name-fields,
.address-fields,
.city-fields,
.state-fields,
.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Link text ── */
.login-text {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

.login-text a {
  color: #1F6F79;
  font-weight: 600;
}

.login-text a:hover { text-decoration: underline; }

/* ── Terms box ── */
.terms-box {
  height: 210px;
  overflow-y: auto;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13px;
  color: #374151;
  line-height: 1.7;
}

.terms-box p { margin-bottom: 12px; }
.terms-box p:last-child { margin-bottom: 0; }
.terms-box strong { color: #111; }
.terms-box a { color: #1F6F79; }

.terms-box::-webkit-scrollbar { width: 6px; }
.terms-box::-webkit-scrollbar-track { background: transparent; }
.terms-box::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 6px; }

/* ── Terms checkbox ── */
.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #374151;
}

.terms-checkbox input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px;
  accent-color: #1F6F79;
  margin-top: 2px;
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
  border: none;
  background: unset;
}

.terms-checkbox label { cursor: pointer; line-height: 1.5; }
.terms-checkbox a { color: #1F6F79; }

/* ── Error text ── */
#reset-err { font-size: 12px; color: #ef4444; min-height: 16px; }

/* ── Step visibility ── */
.form-step { display: none; }

/* ── Mobile ── */
@media (max-width: 760px) {
  .auth-page { flex-direction: column; min-height: 100svh; }

  .auth-left {
    width: 100%;
    border-radius: 0 0 28px 28px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    height: auto;
    position: static;
  }

  .auth-tagline, .auth-features, .auth-footer { display: none; }

  .auth-right {
    padding: 24px 16px 48px;
    align-items: flex-start;
  }

  .auth-card { padding: 28px 20px; }

  .name-fields,
  .address-fields,
  .city-fields,
  .state-fields,
  .button-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
