:root {
  --secondary-color-50: #f7f3f3;
  --login-page-bg: #f3f4f6;
  --login-card-radius: 16px;
  --login-visual-radius-web: 20px;
  --login-font: "Inter", system-ui, -apple-system, sans-serif;
  --login-input-border: #e5e7eb;
  --login-orange: #ff7800;
  --login-card-border: rgba(15, 23, 42, 0.07);
  --login-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 28px -6px rgba(15, 23, 42, 0.12);
  --login-shadow-visual: 0 1px 2px rgba(15, 23, 42, 0.06), 0 14px 40px -10px rgba(15, 23, 42, 0.14);
}

* {
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* —— Register / legacy split (no .login-page on body) —— */
body:not(.login-page) {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: var(--secondary-color-50);
  padding-left: 80px;
  padding-right: 80px;
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  gap: 50px;
}

.pb-200 {
  padding-bottom: 200px;
}
.pb-100 {
  padding-bottom: 100px;
}
.pb-50 {
  padding-bottom: 50px;
}

body:not(.login-page) .main-img-div,
body:not(.login-page) .form-area-div {
  flex: 50%;
}

body:not(.login-page) .main-img-div {
  overflow: hidden;
}

body:not(.login-page) .form-div {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  border: none;
}

body:not(.login-page) .hero-img_ {
  height: 85vh;
  object-fit: cover;
}

.forgot-password-div {
  margin-top: 0;
  width: auto;
  text-align: right;
}

.forgot-password {
  color: #000;
  font-weight: bold;
  margin-top: 0;
}

.mb-x {
  margin-bottom: 30px;
}

@media screen and (max-height: 568px) and (min-width: 1192px) {
  body:not(.login-page) {
    display: flex;
    align-items: flex-start;
  }
}

@media screen and (max-width: 1192px) {
  body:not(.login-page) {
    padding-left: 200px;
    padding-right: 200px;
    padding-top: 100px;
    padding-bottom: 100px;
    height: auto;
    width: 100vw;
    display: block;
  }

  body:not(.login-page) .main-img-div {
    display: none;
  }

  body:not(.login-page) .form-area-div {
    flex: 100%;
    width: 100%;
    overflow-x: hidden;
  }

  body:not(.login-page) .form-div {
    padding: 100px;
  }

  body:not(.login-page) .mb-x {
    margin-bottom: 50px;
  }
}

@media screen and (max-width: 992px) {
  body:not(.login-page) {
    padding-left: 100px;
    padding-right: 100px;
    padding-top: 100px;
    padding-bottom: 100px;
  }

  body:not(.login-page) .form-div {
    padding: 50px;
  }
}

@media screen and (max-width: 768px) {
  body:not(.login-page) {
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 50px;
    padding-bottom: 50px;
  }

  body:not(.login-page) .form-div {
    padding: 25px;
  }

  body:not(.login-page) .mb-x {
    margin-bottom: 20px;
  }
}

/* —— Login page: Figma-style split (Inter, #F3F4F6, 12px radii) —— */
body.login-page {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--login-page-bg);
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  font-family: var(--login-font);
  -webkit-font-smoothing: antialiased;
  justify-content: center;
}

body.login-page input,
body.login-page button,
body.login-page label,
body.login-page p,
body.login-page h1,
body.login-page a.forgot-password {
  font-family: var(--login-font);
}

.login-split-layout {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  width: 100%;
  max-width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3.5vw, 40px) clamp(20px, 4vw, 36px);
  box-sizing: border-box;
  min-width: 0;
}

.login-split-visual {
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding-right: clamp(0px, 2vw, 16px);
}

/* Shrink-wrap to the art so there’s no empty white strip left/right inside the card */
.login-split-visual-card {
  background: #ffffff;
  border-radius: var(--login-card-radius);
  border: 1px solid var(--login-card-border);
  box-shadow: var(--login-shadow-visual);
  overflow: hidden;
  display: block;
  padding: 0;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  min-height: 0;
}

.login-split-hero-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  /* Closer to form column height so the two sides feel balanced */
  max-height: min(440px, calc(100vh - 128px));
}

.login-split-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 400px;
  margin: 0;
  margin-inline: 0;
  min-width: 0;
  justify-self: start;
  align-self: center;
}

body.login-page .login-brand-row {
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-left: 2px;
}

body.login-page .login-brand-row .logo-img-mini {
  width: 36px;
  height: auto;
}

body.login-page .login-brand-row .logo-text-mini {
  font-size: 1.1875rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

body.login-page .form-div {
  width: 100%;
  background: #ffffff;
  border-radius: var(--login-card-radius);
  padding: 22px 24px 26px;
  border: 1px solid var(--login-card-border);
  box-shadow: var(--login-shadow-card);
}

body.login-page .login-signin-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  text-align: left;
  width: 100%;
  margin: 0 0 18px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

body.login-page .login-field-group {
  margin-bottom: 16px;
}

body.login-page .login-field-group:last-of-type {
  margin-bottom: 6px;
}

body.login-page .form-div .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 6px;
  display: block;
}

body.login-page .form-div .form-control {
  border: 1px solid var(--login-input-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9375rem;
  color: #111827;
  background: #fafafa;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

body.login-page .form-div .form-control:hover {
  background: #ffffff;
}

body.login-page .form-div .form-control:focus {
  border-color: var(--login-orange);
  box-shadow: 0 0 0 3px rgba(255, 120, 0, 0.18);
  outline: none;
  background: #ffffff;
}

body.login-page .form-div .form-control::placeholder {
  color: #9ca3af;
}

body.login-page .login-forgot-row {
  text-align: right;
  margin-bottom: 22px;
  margin-top: 4px;
}

body.login-page .forgot-password {
  color: #111827;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
}

body.login-page .forgot-password:hover {
  color: var(--login-orange);
  text-decoration: underline;
}

body.login-page .login-submit-btn {
  border-radius: 12px;
  padding-top: 13px;
  padding-bottom: 13px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border: none;
  background-color: var(--login-orange) !important;
  border-color: var(--login-orange) !important;
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(255, 120, 0, 0.25);
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

body.login-page .login-submit-btn:hover {
  background-color: #e66d00 !important;
  border-color: #e66d00 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(255, 120, 0, 0.35);
}

body.login-page .login-submit-btn:active {
  transform: scale(0.99);
}

body.login-page .toggle-password {
  color: #6b7280;
  right: 14px;
}

body.login-page .login-signup-line {
  margin-top: 20px;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
}

body.login-page .login-signup-line a {
  color: var(--login-orange);
  font-weight: 700;
  text-decoration: none;
}

body.login-page .login-signup-line a:hover {
  text-decoration: underline;
}

.login-split-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.6;
  color: #9ca3af;
  max-width: 100%;
  padding: 0 4px;
}

.login-split-footer a {
  color: #374151;
  font-weight: 700;
  text-decoration: none;
}

.login-split-footer a:hover {
  color: var(--login-orange);
  text-decoration: underline;
}

/* —— Web / desktop: reference layout — soft gray page, padded white art card, centered logo —— */
@media screen and (min-width: 992px) {
  body.login-page {
    padding: clamp(28px, 5vh, 56px) 0;
    background: var(--login-page-bg);
  }

  .login-split-layout {
    max-width: min(1180px, 100%);
    padding: clamp(36px, 5vh, 64px) clamp(40px, 6vw, 88px);
    gap: clamp(56px, 6vw, 100px);
    align-items: center;
  }

  /* Illustration centered in the left half */
  .login-split-visual {
    justify-self: center;
    padding-left: clamp(12px, 2.5vw, 36px);
    padding-right: clamp(12px, 2.5vw, 36px);
    box-sizing: border-box;
  }

  .login-split-main {
    max-width: 440px;
    padding-left: 0;
    margin-inline: auto;
    width: 100%;
    justify-self: center;
  }

  .login-split-hero-img {
    max-height: min(520px, calc(100vh - 148px));
  }

  /* Thick white mat inside the card (like the reference mock) */
  .login-split-visual-card {
    border-radius: var(--login-visual-radius-web);
    padding: clamp(28px, 3.6vw, 42px);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
      0 1px 2px rgba(15, 23, 42, 0.05),
      0 18px 44px -14px rgba(15, 23, 42, 0.16);
  }

  body.login-page .login-brand-row {
    justify-content: center;
    margin-bottom: 28px;
    padding-left: 0;
  }

  body.login-page .form-div {
    padding: 32px 34px 38px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
      0 1px 3px rgba(15, 23, 42, 0.06),
      0 14px 36px -10px rgba(15, 23, 42, 0.14);
  }

  body.login-page .login-signin-title {
    font-size: 1.5rem;
    margin: 0 0 24px;
    letter-spacing: -0.03em;
  }

  body.login-page .login-field-group {
    margin-bottom: 18px;
  }

  body.login-page .login-field-group:last-of-type {
    margin-bottom: 8px;
  }

  body.login-page .form-div .form-label {
    margin-bottom: 8px;
  }

  body.login-page .form-div .form-control {
    padding: 14px 16px;
  }

  body.login-page .login-forgot-row {
    margin-top: 6px;
    margin-bottom: 28px;
  }

  body.login-page .login-submit-btn {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  body.login-page .login-signup-line {
    margin-top: 24px;
  }

  .login-split-footer {
    margin-top: 28px;
    padding: 0 12px;
  }
}

@media screen and (max-width: 991px) {
  .login-split-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 440px;
    padding-top: 16px;
    gap: 0;
  }

  /* Hide illustration on phones / tablets — form only */
  .login-split-visual {
    display: none !important;
  }

  .login-split-main {
    max-width: 100%;
    justify-self: stretch;
    align-self: stretch;
  }

  body.login-page .login-brand-row {
    justify-content: center;
    padding-left: 0;
  }
}

@media screen and (max-width: 480px) {
  .login-split-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.login-page .form-div {
    padding: 20px;
  }
}
