:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #11172b;
  background: #f8f9fb;
  --blue: #2468f2;
  --navy: #242837;
  --green: #08b968;
  --line: #cfd6e2;
  --muted: #667085;
  --soft: #f8f9fb;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--soft); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.auth-layout {
  display: grid;
  min-height: 100vh;
  gap: 0;
  padding: 16px;
}
.signup-layout { grid-template-columns: minmax(390px, .86fr) minmax(610px, 1.14fr); }
.login-layout { grid-template-columns: 1.1fr .9fr; }

.auth-showcase {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--navy);
  color: #fff;
}
.showcase-brand {
  position: absolute;
  top: 30px;
  left: 50%;
  z-index: 3;
  display: flex;
  width: 270px;
  height: 96px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 7px;
  background: var(--navy);
  transform: translateX(-50%);
}
.showcase-brand img {
  display: block;
  width: 258px;
  height: auto;
  object-fit: contain;
  filter: none;
}
.auth-logo { position: absolute; top: 32px; left: 38px; z-index: 2; }
.auth-logo { display: flex; width: 230px; height: 88px; align-items: center; justify-content: center; overflow: hidden; border-radius: 7px; background: #fff; }
.auth-logo img { display: block; width: 225px; height: auto; object-fit: contain; filter: none; }
.showcase-content {
  display: grid;
  min-height: 100%;
  align-content: center;
  justify-items: center;
  padding: 90px 60px 70px;
  text-align: center;
}
.showcase-kicker { margin: 0 0 25px; font-size: 1.08rem; font-weight: 850; }
.showcase-content h2 { max-width: 470px; margin: 27px 0 7px; font-size: 1.15rem; line-height: 1.3; }
.showcase-content > p:last-child { max-width: 450px; margin: 0; color: #c8cedd; font-size: .86rem; line-height: 1.5; }

.developer-art, .chat-art { position: relative; width: 330px; height: 255px; }
.art-orbit { position: absolute; border: 2px solid rgba(8,185,104,.48); border-radius: 50%; }
.orbit-one { inset: 28px 45px 34px; }.orbit-two { inset: 58px 20px 62px; transform: rotate(25deg); }
.art-screen { position: absolute; display: grid; place-items: center; border-radius: 8px; background: #11bc70; box-shadow: 0 15px 30px rgba(0,0,0,.2); font-size: .8rem; font-weight: 900; }
.screen-one { top: 34px; left: 32px; width: 86px; height: 58px; transform: rotate(-8deg); }
.screen-two { top: 42px; right: 28px; width: 80px; height: 64px; transform: rotate(8deg); }
.art-person { position: absolute; top: 76px; left: 113px; display: grid; width: 110px; height: 140px; place-items: center; border-radius: 58px 58px 20px 20px; background: linear-gradient(145deg,#15c878,#087b50); box-shadow: 0 20px 35px rgba(0,0,0,.25); font-weight: 900; }
.art-leaf { position: absolute; width: 54px; height: 90px; border-radius: 100% 0 100% 0; background: #0ebd6e; }
.leaf-one { left: 22px; bottom: 14px; transform: rotate(-22deg); }.leaf-two { right: 22px; bottom: 10px; transform: scaleX(-1) rotate(-22deg); }

.auth-main { position: relative; display: grid; min-height: calc(100vh - 32px); place-items: center; padding: 88px 45px 55px; }
.auth-tools { position: absolute; top: 9px; right: 9px; display: flex; gap: 10px; }
.login-tools { right: auto; left: 11%; top: 24px; }
.tool-select { display: flex; min-height: 39px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #19223c; box-shadow: 0 2px 5px rgba(20,35,70,.05); font-size: .78rem; padding: 0 12px; }
.theme-control span:first-child { color: #ffad0d; }

.form-card {
  width: min(100%, 448px);
  border: 1px solid #dbe1ea;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31,43,74,.1);
  padding: 25px 24px 20px;
}
.step-badge { display: flex; width: max-content; min-height: 34px; align-items: center; gap: 8px; margin: 0 auto 12px; border: 1px solid #dce2eb; border-radius: 999px; font-size: .84rem; font-weight: 850; padding: 0 13px; }
.step-track { height: 8px; overflow: hidden; border-radius: 99px; background: var(--blue); }
.step-track span { display: block; width: 25%; height: 100%; background: var(--green); }
.form-heading { margin: 17px 0 23px; text-align: center; }
.form-heading h1, .login-heading h1 { margin: 0 0 5px; font-size: 1.18rem; }
.form-heading p, .login-heading p { margin: 0; color: var(--muted); font-size: .86rem; }

.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 6px; color: #5e687d; font-size: .82rem; font-weight: 650; }
.auth-form label > span:first-child b { color: #df2535; }
.auth-form input, .auth-form select {
  width: 100%; min-height: 47px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: #1b243b; outline: none; padding: 0 14px;
}
.auth-form input::placeholder { color: #9ba5ba; }
.auth-form input:focus, .auth-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,104,242,.08); }
.field-error { color: #c62838; font-size: .7rem; }.field-error:empty { display: none; }
.has-error input, .has-error select { border-color: #df2535 !important; }
.phone-control { display: grid; grid-template-columns: 115px 1fr; gap: 8px; }
.password-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.password-control, .input-with-icon { position: relative; display: block; }
.password-control input { padding-right: 44px; }
.password-toggle { position: absolute; top: 50%; right: 7px; display: grid; width: 32px; height: 32px; place-items: center; border: 0; background: transparent; color: #7a859b; cursor: pointer; transform: translateY(-50%); }
.terms-row { display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; gap: 8px !important; font-size: .72rem !important; font-weight: 500 !important; }
.terms-row input { width: 16px; min-height: 16px; margin-top: 1px; accent-color: var(--green); }
.form-navigation { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e4e7ee; padding-top: 15px; }
.back-button { display: inline-flex; min-height: 39px; align-items: center; border: 1px solid #d9dee8; border-radius: 7px; color: #929bad; padding: 0 13px; font-size: .78rem; }
.primary-auth-button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 7px; background: var(--green); color: #fff; cursor: pointer; font-weight: 850; padding: 0 18px; }
.form-switch { margin: 16px 0 0; border-top: 1px solid #e4e7ee; padding-top: 15px; color: #9aa3b5; font-size: .7rem; text-align: center; }.form-switch a { color: var(--green); font-weight: 800; }
.form-message { display: none; margin: 0; border-radius: 6px; padding: 10px 12px; font-size: .75rem; font-weight: 750; }.form-message.visible { display: block; }.form-message.error { background: #fff0f2; color: #b42333; }.form-message.success { background: #e8faf1; color: #07804a; }
.auth-copyright { margin: 30px 0 0; color: #97a1b5; font-size: .68rem; text-align: center; }

.login-layout { grid-template-areas: "main showcase"; }
.login-main { grid-area: main; place-items: center; padding-left: 11%; padding-right: 11%; }
.login-showcase { grid-area: showcase; }
.login-form-shell { width: min(100%, 448px); }
.login-logo { display: flex; min-height: 104px; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.login-logo img { display: block; width: 285px; height: auto; object-fit: contain; filter: none; }
.login-heading { margin: 35px 0; }
.login-heading h1 { font-size: 1.75rem; }.login-heading p { font-size: .9rem; }
.login-form { gap: 22px; }
.input-with-icon i { position: absolute; z-index: 2; top: 50%; left: 17px; color: #9aa5b9; font-style: normal; transform: translateY(-50%); }
.input-with-icon input { padding-left: 43px; }
.forgot-link { justify-self: end; margin-top: -9px; color: #536078; font-size: .74rem; }
.login-button { width: 100%; min-height: 49px; }
.separator { display: flex; align-items: center; gap: 13px; color: #9ba4b5; font-size: .72rem; }.separator::before,.separator::after { flex: 1; height: 1px; background: #dfe3ea; content: ""; }
.create-account-button { display: flex; min-height: 49px; align-items: center; justify-content: center; border: 2px solid var(--green); border-radius: 7px; color: var(--green); font-size: .85rem; font-weight: 850; }
.login-copyright { text-align: left; }
.login-showcase .showcase-content { text-align: left; justify-items: start; padding-left: 115px; }
.chat-art { margin: 10px 0 15px; }
.chat-box { position: absolute; top: 86px; left: 78px; display: grid; width: 150px; height: 105px; place-items: center; border-radius: 9px 9px 9px 0; background: var(--green); color: #fff; font-size: 1.8rem; }
.chat-person { position: absolute; top: 34px; left: 135px; display: grid; width: 70px; height: 110px; place-items: center; border-radius: 40px 40px 10px 10px; background: #48d99a; color: #18213a; font-weight: 900; }
.mail { position: absolute; width: 56px; height: 38px; border: 2px solid #c8ced9; background: #9299a8; transform: rotate(15deg); }.mail::after { position:absolute; inset:0; border-bottom:2px solid #dce0e8; content:""; transform:skewY(-30deg); }.mail-one { top: 55px; right: 20px; }.mail-two { right: 4px; bottom: 35px; transform: rotate(-10deg); }
.plant { position: absolute; bottom: 10px; width: 45px; height: 72px; border-radius: 100% 0; background: #0ebd6e; }.plant-one { left: 12px; transform: rotate(-15deg); }.plant-two { right: 22px; transform: scaleX(-1) rotate(-15deg); }
.login-benefits { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }.login-benefits li { font-size: .82rem; }.login-benefits li::before { display:inline-grid; width:16px; height:16px; margin-right:8px; place-items:center; border-radius:50%; background:#42c59a; content:"✓"; font-size:.65rem; }
.demo-access { margin: -10px 0 0; color: #98a2b3; font-size: .7rem; text-align: center; }

@media (max-width: 900px) {
  .signup-layout, .login-layout { display: block; padding: 0; }
  .auth-showcase { display: none; }
  .auth-main { min-height: 100vh; padding: 80px 20px 45px; }
  .auth-tools, .login-tools { top: 25px; right: 24px; left: auto; }
  .form-card { width: min(100%, 430px); }
  .login-form-shell { width: min(100%, 450px); }
}

@media (max-width: 520px) {
  .auth-main { place-items: start center; padding: 80px 24px 38px; }
  .auth-tools { gap: 10px; }
  .tool-select { min-height: 38px; padding: 0 10px; }
  .form-card { padding: 25px 24px 20px; }
  .password-grid { grid-template-columns: 1fr; }
  .login-logo img { width: min(270px, 82vw); }
  .login-heading { margin: 36px 0 28px; }
  .login-heading h1 { font-size: 1.55rem; }
}
