/* Tax Mithra — standalone client login & register */

:root {
  --tm-auth-navy: #0f3a54;
  --tm-auth-navy-deep: #04121c;
  --tm-auth-green: #27ae60;
  --tm-auth-green-light: #9ee8c0;
  --tm-auth-text: #4a5f73;
  --tm-auth-border: #dce6ee;
  --tm-auth-card-shadow: 0 24px 60px rgba(15, 58, 84, 0.12);
  --font-auth-body: 'DM Sans', system-ui, sans-serif;
  --font-auth-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.tm-site-auth {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-auth-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tm-auth-text);
  -webkit-font-smoothing: antialiased;
}

.tm-site-auth-shell {
  display: flex;
  min-height: 100vh;
  flex-wrap: wrap;
}

/* Brand panel */
.tm-site-auth-brand {
  flex: 0 0 42%;
  max-width: 520px;
  min-height: 100vh;
  padding: 48px 44px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--tm-auth-navy-deep) 0%, #0d2840 35%, var(--tm-auth-navy) 70%, #1a5276 100%);
}
.tm-site-auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 15%, rgba(39, 174, 96, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 85%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.tm-site-auth-brand-inner {
  position: relative;
  z-index: 2;
  max-width: 400px;
  width: 100%;
}
.tm-site-auth-logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
.tm-site-auth-logo-link--brand {
  margin-bottom: 32px;
}
.tm-site-auth-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: linear-gradient(145deg, #ffffff 0%, #f4f8fb 100%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(26, 82, 118, 0.08);
}
.tm-site-auth-logo {
  display: block;
  max-height: 72px;
  width: auto;
  max-width: min(280px, 100%);
  object-fit: contain;
}
.tm-site-auth-form-logo {
  display: none;
  margin: 0 auto 24px;
  text-align: center;
}
.tm-site-auth-form-logo .tm-site-auth-logo-card {
  box-shadow: 0 8px 24px rgba(15, 58, 84, 0.12);
  border-color: var(--tm-auth-border);
}
.tm-site-auth-logo--form {
  max-height: 58px;
}
@media (max-width: 991px) {
  .tm-site-auth-form-logo {
    display: block;
  }
  .tm-site-auth-logo-link--brand {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 992px) {
  .tm-site-auth-brand .tm-site-auth-logo {
    max-height: 80px;
  }
}
.tm-site-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--tm-auth-green-light);
  margin-bottom: 14px;
}
.tm-site-auth-kicker i { color: var(--tm-auth-green); }
.tm-site-auth-title {
  font-family: var(--font-auth-heading);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: #fff;
}
.tm-site-auth-lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}
.tm-site-auth-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tm-site-auth-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}
.tm-site-auth-benefits i {
  color: var(--tm-auth-green);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.tm-site-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}
.tm-site-auth-back:hover {
  color: var(--tm-auth-green-light);
}
.tm-site-auth-decor {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 0;
  pointer-events: none;
}
.tm-site-auth-decor-1 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: -80px;
  background: rgba(39, 174, 96, 0.08);
}
.tm-site-auth-decor-2 {
  width: 180px;
  height: 180px;
  top: 8%;
  right: -50px;
}
.tm-site-auth-decor-3 {
  width: 110px;
  height: 110px;
  top: 52%;
  left: 10%;
  background: rgba(255, 255, 255, 0.04);
}

/* Form panel */
.tm-site-auth-main {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: linear-gradient(180deg, #f6f9fc 0%, #eef3f8 50%, #f4f8fb 100%);
  position: relative;
}
.tm-site-auth-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--tm-auth-green), #5ddea8, #2471a3);
}
.tm-site-auth-main--wide .tm-site-auth-card {
  max-width: 720px;
}
.tm-site-auth-main--register {
  align-items: flex-start;
  padding-top: 36px;
  padding-bottom: 48px;
}
.tm-site-auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  border: 1px solid var(--tm-auth-border);
  box-shadow: var(--tm-auth-card-shadow);
}
.tm-site-auth-card-head {
  margin-bottom: 28px;
}
.tm-site-auth-card-head h2 {
  font-family: var(--font-auth-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--tm-auth-navy);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.tm-site-auth-card-head p {
  margin: 0;
  font-size: 1rem;
  color: var(--tm-auth-text);
}
.tm-site-auth-switch {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--tm-auth-border);
  text-align: center;
  font-size: 1rem;
}
.tm-site-auth-switch a {
  color: var(--tm-auth-green);
  font-weight: 700;
  text-decoration: none;
}
.tm-site-auth-switch a:hover {
  text-decoration: underline;
}
.tm-site-auth-copy {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #8a9bab;
}

.tm-auth-alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}
.tm-auth-alert-error {
  background: #fdecea;
  color: #b03a2e;
  border: 1px solid #f5c6cb;
}
.tm-auth-alert-success {
  background: #eafaf1;
  color: #1e6b3f;
  border: 1px solid rgba(39, 174, 96, 0.35);
}

.tm-auth-field {
  margin-bottom: 18px;
}
.tm-auth-field > label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tm-auth-navy);
  margin-bottom: 8px;
}
.tm-auth-input-wrap {
  position: relative;
}
.tm-auth-input-wrap > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tm-auth-green);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 1;
}
.tm-auth-input-wrap .form-control {
  width: 100%;
  padding: 14px 16px 14px 46px;
  font-size: 1rem;
  font-family: var(--font-auth-body);
  border: 1px solid var(--tm-auth-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tm-auth-input-wrap .form-control:focus {
  border-color: var(--tm-auth-green);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
  outline: none;
}
.tm-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-auth-heading);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--tm-auth-green) 0%, #2ecc71 100%);
  box-shadow: 0 8px 24px rgba(39, 174, 96, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.tm-auth-submit:hover,
.tm-auth-submit:focus-visible {
  transform: translateY(-2px);
  color: #fff;
}
.tm-site-auth--login .tm-auth-submit {
  background: linear-gradient(135deg, #1a5276 0%, #2471a3 100%);
  box-shadow: 0 8px 24px rgba(26, 82, 118, 0.35);
}
.tm-site-auth--login .tm-auth-submit:hover,
.tm-site-auth--login .tm-auth-submit:focus-visible {
  background: #0f3a54;
  box-shadow: 0 12px 32px rgba(15, 58, 84, 0.45);
}
.tm-site-auth--register .tm-auth-submit:hover,
.tm-site-auth--register .tm-auth-submit:focus-visible {
  background: #1e8f4f;
  box-shadow: 0 12px 32px rgba(39, 174, 96, 0.4);
}
.tm-auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.55;
  cursor: pointer;
  color: var(--tm-auth-text);
}
.tm-auth-terms input { margin-top: 4px; flex-shrink: 0; }
.tm-auth-terms a {
  color: var(--tm-auth-green);
  font-weight: 600;
}

.tm-auth-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.tm-auth-captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.tm-auth-captcha-img {
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--tm-auth-border);
  background: #fff;
  line-height: 0;
}
.tm-auth-captcha-img img { display: block; max-height: 52px; }
.tm-auth-captcha-refresh {
  width: 48px;
  height: 48px;
  border: 1px solid var(--tm-auth-border);
  border-radius: 12px;
  background: #fff;
  color: var(--tm-auth-navy);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.tm-auth-captcha-refresh:hover {
  background: #eafaf1;
  color: var(--tm-auth-green);
}
.tm-auth-captcha-input {
  flex: 1 1 160px;
  min-width: 0;
}

/* —— Register page —— */
.tm-site-auth--register .tm-site-auth-brand {
  flex: 0 0 38%;
  max-width: 480px;
}
.tm-reg-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  padding-left: 0;
}
.tm-reg-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0 12px 20px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
}
.tm-reg-step.is-active {
  color: #fff;
  border-left-color: var(--tm-auth-green);
}
.tm-reg-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-auth-heading);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.tm-reg-step.is-active .tm-reg-step-num {
  background: var(--tm-auth-green);
  border-color: var(--tm-auth-green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(39, 174, 96, 0.45);
}

.tm-reg-card {
  padding: 0;
  overflow: hidden;
  max-width: 720px;
}
.tm-reg-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 36px 24px;
  background: linear-gradient(180deg, #f8fbfd 0%, #fff 100%);
  border-bottom: 1px solid var(--tm-auth-border);
}
.tm-reg-card-header h2 {
  font-family: var(--font-auth-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--tm-auth-navy);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.tm-reg-card-header p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--tm-auth-text);
  max-width: 420px;
}
.tm-reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tm-auth-green);
  background: #eafaf1;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.tm-reg-secure-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tm-auth-navy);
  background: #fff;
  border: 1px solid var(--tm-auth-border);
  padding: 8px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(15, 58, 84, 0.06);
}
.tm-reg-secure-pill i { color: var(--tm-auth-green); }

.tm-reg-form {
  padding: 8px 36px 28px;
}
.tm-reg-form--flat .tm-auth-field {
  margin-bottom: 0;
}
.tm-reg-form--flat .tm-auth-terms {
  margin-top: 4px;
}
.tm-reg-section {
  padding: 24px 0;
  border-bottom: 1px solid #eef3f7;
}
.tm-reg-section:last-of-type {
  border-bottom: none;
}
.tm-reg-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.tm-reg-section-head h3 {
  font-family: var(--font-auth-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tm-auth-navy);
  margin: 0 0 4px;
}
.tm-reg-section-head p {
  margin: 0;
  font-size: 0.88rem;
  color: #7a8fa3;
}
.tm-reg-section-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef3f8 0%, #e8f0f6 100%);
  color: var(--tm-auth-navy);
  font-size: 1.05rem;
  border: 1px solid var(--tm-auth-border);
}
.tm-reg-section-icon--green {
  background: linear-gradient(135deg, #eafaf1 0%, #d5f5e3 100%);
  color: var(--tm-auth-green);
  border-color: rgba(39, 174, 96, 0.2);
}
.tm-reg-section .tm-auth-field {
  margin-bottom: 0;
}
.tm-reg-req {
  color: #e74c3c;
  font-weight: 700;
}
.tm-reg-opt {
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a9bab;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 4px;
}
.tm-auth-field--optional label {
  color: #5d6d7e;
}

.tm-reg-captcha-box {
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  background: #f6f9fc;
  border: 1px dashed #c5d4e0;
}
.tm-reg-captcha-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tm-auth-navy);
  margin-bottom: 4px;
}
.tm-reg-captcha-hint {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: #7a8fa3;
}

.tm-reg-terms-box {
  margin: 8px 0 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f8fbfd;
  border: 1px solid var(--tm-auth-border);
}
.tm-reg-terms-box .tm-auth-terms {
  margin: 0;
}
.tm-reg-submit {
  margin-top: 4px;
}
.tm-reg-card-footer {
  padding: 20px 36px 28px;
  background: #f8fbfd;
  border-top: 1px solid var(--tm-auth-border);
}
.tm-reg-card-footer .tm-site-auth-switch {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.tm-reg-card-footer .tm-site-auth-copy {
  margin-top: 12px;
}

.tm-reg-form .tm-auth-alert {
  margin: 20px 36px 0;
}

@media (max-width: 991px) {
  .tm-site-auth-brand {
    flex: 1 1 100%;
    max-width: none;
    min-height: auto;
    padding: 36px 28px 32px;
  }
  .tm-site-auth-brand-inner {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
  }
  .tm-site-auth-benefits {
    align-items: flex-start;
    text-align: left;
  }
  .tm-site-auth-back {
    justify-content: center;
    width: 100%;
  }
  .tm-site-auth-main {
    min-height: auto;
    padding: 32px 20px 48px;
  }
  .tm-site-auth-card {
    padding: 32px 24px;
  }
  .tm-reg-card {
    padding: 0;
  }
  .tm-reg-card-header,
  .tm-reg-form,
  .tm-reg-card-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .tm-reg-card-header {
    flex-direction: column;
    padding-top: 28px;
  }
  .tm-reg-form .tm-auth-alert {
    margin-left: 24px;
    margin-right: 24px;
  }
}
