body.cj-auth-screen {
  background: #f4f6fa;
  color: #142b40;
}

body.cj-auth-screen > header { display: none; }

body.cj-auth-screen:has(#workspace) main {
  box-sizing: border-box;
  width: 100%;
  max-width: 1320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto !important;
  padding: clamp(20px, 3.2vw, 44px) clamp(16px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cj-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  grid-template-areas: "promo card";
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
  width: 100%;
}

.cj-auth-shell[hidden], #auth [hidden] { display: none !important; }

.cj-auth-promo { grid-area: promo; min-width: 0; }

.cj-auth-promo h1 {
  margin: 0 0 18px;
  max-width: 17ch;
  color: #142b40;
  font-size: clamp(2.5rem, 4.1vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.cj-auth-pitch {
  max-width: 40ch;
  margin: 0 0 26px;
  color: #445568;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.5;
}

.cj-auth-field-photo {
  display: block;
  width: 100%;
  height: clamp(190px, 21vw, 320px);
  object-fit: cover;
  object-position: center 55%;
  border-radius: 12px;
  background: #e0d9ca;
}

.cj-auth-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid #c8c0b3;
}

.cj-auth-workflow dt { font-size: 1rem; font-weight: 750; }
.cj-auth-workflow dd { margin: 5px 0 0; color: #445568; line-height: 1.5; font-size: .9375rem; }

#auth.cj-auth-card {
  grid-area: card;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(26px, 3.4vw, 44px);
  background: #fff;
  border: 1px solid #dce3e9;
  border-radius: 16px;
  box-shadow: none;
}

#auth .cj-auth-logo{width:220px;max-width:100%;height:auto;display:block;margin:0 0 16px}
#auth h2{font-size:clamp(2.125rem,3.1vw,2.75rem);line-height:1.25;letter-spacing:-.6px;margin:0 0 9px;color:#182d42}
#auth .cj-auth-subtitle{font-size:1.125rem;line-height:1.5;color:#536579;margin:0 0 22px}
#auth>.cj-auth-body{display:block}
#auth form{min-width:0;margin:0}
#auth form>h3{display:none}
#auth label{display:block;font-size:1.0625rem;line-height:1.5;font-weight:600;color:#2a3e51;margin:0 0 6px}
#auth input,#auth select{box-sizing:border-box;width:100%;min-width:0;min-height:58px;font-size:1.125rem;border:1px solid #d4dce4;border-radius:8px;background:#fff;color:#182d42;padding:11px 13px;margin:0 0 19px;box-shadow:none}
#auth input:focus,#auth select:focus{outline:3px solid #ed9a633d;border-color:#bb541f}
#auth button{box-sizing:border-box;cursor:pointer}
#auth form>button:not([type=button]),#auth #sendReset{border:0;border-radius:8px;background:#bd4c17;color:#fff;font-size:1.125rem;font-weight:700;min-height:58px;margin:5px 0 0;padding:12px 16px;width:100%;box-shadow:0 3px 8px #bd4c171c}
#auth form>button:not([type=button]):hover,#auth #sendReset:hover{background:#a54012}
#auth button:focus-visible{outline:3px solid #2375a8;outline-offset:3px}
#auth .cj-auth-password{position:relative}
#auth .cj-auth-password input{padding-right:58px}
#auth .cj-auth-eye{position:absolute;top:1px;right:1px;width:54px;height:56px;min-height:0;padding:0;margin:0;border:0;border-radius:7px;background:transparent;color:#65778a;font-size:0;box-shadow:none}
#auth .cj-auth-eye:before{content:'';display:block;width:19px;height:12px;border:1.8px solid currentColor;border-radius:70% 25%;transform:rotate(45deg);margin:auto}
#auth .cj-auth-eye:after{content:'';position:absolute;width:5px;height:5px;border:1.5px solid currentColor;border-radius:50%;top:23px;left:24px}
#auth .cj-auth-eye[aria-pressed=true]{background:#edf2f6;color:#182d42}
#auth .cj-auth-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:4px 10px;flex-wrap:wrap}
#auth .cj-auth-text-button,#auth .cj-auth-switch button{width:auto;background:transparent;border:0;color:#a44115;font-size:1rem;font-weight:600;padding:0;min-height:0;box-shadow:none;margin:0 0 6px}
#auth .cj-auth-switch{text-align:center;border-top:1px solid #e8edf1;padding-top:10px;margin:20px 0 0}
#auth .cj-auth-switch button{margin:0;min-height:44px;line-height:1.5;max-width:100%}
#auth .cj-auth-install {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: fit-content;
  margin: 0 auto;
  color: #40586e;
  font-size: .9375rem;
  text-decoration: underline;
  text-underline-offset: .18em;
}
#auth .cj-auth-install:focus-visible { outline: 3px solid #2375a8; outline-offset: 3px; }
.cj-app-installed #auth .cj-auth-install { display: none; }
@media (display-mode: standalone) {
  #auth .cj-auth-install { display: none; }
}
#auth .cj-social-login{padding:0;border:0;margin:21px 0 0}
#auth .cj-social-login>p{font-size:.875rem;color:#536579;text-align:center}
#auth .cj-social-login>p:empty{display:none}
#auth .cj-social-login button{background:#fff;color:#2a3e51;border:1px solid #d4dce4;border-radius:8px;min-height:52px;font-size:1.0625rem;margin:10px 0 0}
#auth #passwordRecovery{border:0;box-shadow:none;padding:0;margin:0}
#auth #recoveryDetails>summary{display:none}
#auth #passwordRecovery p,#auth #passwordRecovery details{font-size:12px;line-height:1.7;color:#607084}
#auth #passwordRecovery details{margin-top:18px}
#auth .cj-auth-hint{font-size:11px;color:#607084;margin:-12px 0 19px}
#auth #notice:not(:empty){position:static;transform:none;inset:auto;width:auto;max-width:none;box-sizing:border-box;z-index:auto;margin:0 0 20px;background:#fff2e8;border:1px solid #f1cfb7;color:#72370e;border-radius:8px;padding:12px;font-size:13px;line-height:1.5;box-shadow:none}
#auth #notice:empty{display:none}
#auth[data-auth-view=login] #passwordRecovery,#auth[data-auth-view=signup] #passwordRecovery{display:none!important}



#auth input { caret-color: #a44115; }
body.cj-auth-screen ::selection { color: #142b40; background: #f3c9ac; }
body.cj-auth-screen main > section.panel:not(.cj-auth-shell) { max-width: 744px; width: 100%; box-sizing: border-box; }

@media (max-width: 860px) {
  body.cj-auth-screen:has(#workspace) main { max-width: 760px; justify-content: flex-start; }
  .cj-auth-shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "card" "promo"; gap: 24px; }
  .cj-auth-promo h1 { max-width: 18ch; font-size: clamp(2rem, 5.5vw, 3.625rem); }
  .cj-auth-pitch { max-width: 52ch; margin-bottom: 0; }
  .cj-auth-field-photo, .cj-auth-workflow { display: none; }
}

@media (max-width: 480px) {
  body.cj-auth-screen:has(#workspace) main { padding: 24px 14px; }
  .cj-auth-shell { gap: 20px; }
  .cj-auth-promo { padding: 0 5px; }
  .cj-auth-promo h1 { margin-bottom: 10px; }
  #auth.cj-auth-card { padding: 23px 19px; }
  #auth .cj-auth-logo { width: 205px; margin-bottom: 20px; }
}
