:root { color-scheme: light; font-family: Inter, "Segoe UI", Arial, sans-serif; color: #203341; background: #f5f7fa; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
.cl-auth-wrap { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 32px 20px; }
.cl-auth-layout { width: 100%; max-width: 440px; }
.cl-auth-card { background: #fff; border: 1px solid #e3e8ed; border-radius: 20px; padding: 36px; box-shadow: 0 12px 40px #20334106; }
.cl-login-brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 650; }
.cl-login-logo { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; background: #ff7a18; color: #fff; font-size: 15px; font-weight: 800; }
.cl-auth-card-top { margin: 30px 0 26px; }
.cl-auth-card-top h1 { font-size: 26px; letter-spacing: -.6px; line-height: 1.25; margin: 0 0 8px; }
.cl-auth-card-top p { margin: 0; font-size: 14px; color: #657581; line-height: 1.5; }
.cl-auth-form { display: grid; gap: 19px; }
.cl-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.cl-input-wrap { position: relative; }
.cl-input { display: block; width: 100%; min-height: 50px; border: 1px solid #ccd5dc; border-radius: 10px; padding: 12px 14px; background: #fff; color: #203341; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.cl-input::placeholder { color: #7b8790; }
.cl-input:hover { border-color: #99aab6; }
.cl-input:focus { border-color: #d9660e; box-shadow: 0 0 0 3px #ff7a181c; }
#senha { padding-right: 82px; }
.cl-password-toggle { position: absolute; right: 5px; top: 3px; height: 44px; padding: 0 10px; border: 0; background: transparent; color: #566b7a; font-size: 12px; font-weight: 600; cursor: pointer; border-radius: 7px; }
.cl-password-toggle:hover { background: #f1f4f6; color: #203341; }
.cl-remember-login { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 12px; line-height: 1.5; color: #576875; cursor: pointer; }
.cl-remember-login input { width: 17px; height: 17px; flex-shrink: 0; margin: 0; accent-color: #c95600; }
.cl-auth-submit { width: 100%; min-height: 50px; border: 0; border-radius: 10px; background: #c95600; color: #fff; font-size: 15px; font-weight: 650; cursor: pointer; transition: background .15s; }
.cl-auth-submit:hover { background: #ac4900; }
.cl-auth-submit:active { background: #923e00; }
button:focus-visible, .cl-remember-login input:focus-visible { outline: 3px solid #1c718c; outline-offset: 3px; }
.cl-alert, .cl-trial-notice { margin-bottom: 22px; padding: 13px 15px; border: 1px solid; border-radius: 10px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.cl-alert-error { color: #982d30; background: #fff5f5; border-color: #f0cdcf; }
.cl-alert-success, .cl-trial-notice { color: #26704d; background: #f0f9f4; border-color: #cee8d8; }
.cl-trial-notice strong, .cl-trial-notice span { display: block; }
.cl-trial-notice-warn, .cl-trial-notice-warning { color: #855315; background: #fff8ed; border-color: #f3ddbb; }
.cl-trial-notice-bad, .cl-trial-notice-danger { color: #982d30; background: #fff5f5; border-color: #f0cdcf; }
.cl-auth-footnote { margin-top: 24px; font-size: 12px; line-height: 1.6; color: #657581; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .cl-auth-wrap { padding: 24px 16px; }
  .cl-auth-card { padding: 28px 22px; border-radius: 16px; }
  .cl-login-brand { font-size: 16px; }
  .cl-auth-card-top h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

body.login-clean { background: #f5f7fa; color: #203341; font-family: Inter, "Segoe UI", Arial, sans-serif; }
.login-clean .scroll-top-button { display: none; }

/* Reference layouts: desktop split scene and dedicated mobile composition. */
body.login-clean { background: #f4f8fc; }
body.login-clean::before, body.login-clean::after { content: none; }
.cl-auth-wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 0; position: relative; isolation: isolate; }
.cl-desktop-art { width: 100%; align-self: stretch; min-height: 100svh; background: url('login-desktop-reference.png') left center / 198% 100% no-repeat; }
.cl-auth-layout { max-width: 660px; width: 100%; padding: 40px 42px 24px; position: relative; margin: auto; }
.cl-auth-layout::before { content: ''; position: absolute; z-index: -1; width: 180px; height: 100px; right: -50px; top: 19%; border: 5px solid #f6e4d5; border-radius: 80px 80px 50px 50px; opacity: .6; }
.cl-auth-card { padding: 34px 36px; border-radius: 24px; box-shadow: 0 10px 40px #263e5310; }
.cl-login-brand { justify-content: center; gap: 14px; }
.cl-login-logo { width: 64px; height: 64px; border-radius: 18px; font-size: 30px; letter-spacing: -3px; padding-right: 3px; background: linear-gradient(135deg,#ff8300,#ff5800); }
.cl-brand-name { font-size: clamp(21px,1.9vw,29px); font-weight: 750; letter-spacing: -1.2px; white-space: nowrap; line-height: 1.25; }
.cl-brand-name em { color: #fa6500; font-style: normal; }
.cl-login-brand p { font-size: 14px; font-weight: 400; color: #657581; margin: 3px 0 0; }
.cl-auth-card-top { text-align: center; margin: 26px 0; }
.cl-auth-card-top h1 { font-size: clamp(22px,1.8vw,28px); letter-spacing: -.7px; }
.cl-auth-card-top p { font-size: 14px; line-height: 1.5; }
.cl-mobile-welcome { display: none; }
.cl-auth-form { gap: 18px; }
.cl-field label { font-size: 13px; }
.cl-input { border-radius: 8px; border-color: #c7d5e3; padding-left: 46px; min-height: 50px; }
.cl-input:not(:placeholder-shown), .cl-input:-webkit-autofill { background: #edf4ff; }
.cl-field-icon { position: absolute; z-index: 1; left: 15px; top: 15px; width: 21px; height: 21px; pointer-events: none; color: #425968; }
#senha { padding-right: 50px; }
.cl-password-toggle { width: 44px; padding: 10px; top: 3px; right: 3px; color: #203c4d; }
.cl-password-toggle svg { width: 24px; height: 24px; display: block; }
.cl-eye-slash { display: none; }
.cl-password-toggle[aria-pressed="true"] .cl-eye-slash { display: block; }
.cl-remember-login { min-height: 24px; font-size: 12px; }
.cl-remember-login input { width: 19px; height: 19px; }
.cl-auth-submit { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 17px; min-height: 54px; border-radius: 10px; background: linear-gradient(175deg,#f68a00,#ed5000); }
.cl-auth-submit svg { width: 26px; height: 26px; }
.cl-auth-submit:hover { background: linear-gradient(175deg,#de7700,#cf4500); }
.cl-alert-success { display: flex; gap: 12px; align-items: center; padding: 10px 13px; background: #e9f7ef; border-color: #d1efdd; }
.cl-alert-success > span:nth-child(2) { flex: 1; }
.cl-success-icon { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #258047; color: white; flex-shrink: 0; font-weight: 700; }
.cl-alert-success button { min-width: 32px; min-height: 32px; padding: 0; background: transparent; border: 0; font-size: 24px; color: #26704d; cursor: pointer; }
.cl-login-footer { text-align: center; margin-top: 20px; color: #617487; font-size: 12px; line-height: 1.7; }
.login-clean { overflow-x: clip; }
@media (min-width: 1800px) { .cl-auth-layout { max-width: 730px; } .cl-auth-card { padding: 44px; } }
@media (max-width: 900px) {
  /* No celular, o login acompanha o conteudo, sem reservar uma tela inteira. */
  body.login-clean { background: #fafbfd; min-height: 0; }
  .cl-desktop-art { display: none; }
  .cl-auth-wrap { display: block; min-height: 0; overflow: hidden; }
  .cl-auth-wrap::before { content: ''; position: absolute; z-index: -1; width: 230px; height: 235px; top: -132px; left: -132px; border-radius: 0 0 85px 0; border-right: 2px solid #ffad62; border-bottom: 2px solid #ffad62; background: linear-gradient(150deg,#fff7ed 48%,#ffb967); transform: rotate(-12deg); }
  .cl-auth-wrap::after { content: ''; position: absolute; z-index: -1; width: 220px; height: 140px; bottom: -100px; right: -70px; border: 2px solid #ffb56d; border-radius: 65px; transform: rotate(-38deg); }
  .cl-auth-layout { max-width: 480px; padding: max(20px,env(safe-area-inset-top)) 18px max(12px,env(safe-area-inset-bottom)); }
  .cl-auth-layout::before { width: 105px; height: 66px; top: 108px; right: -48px; border-width: 4px; }
  .cl-auth-card { border: 0; padding: 0; background: transparent; box-shadow: none; }
  .cl-login-brand { flex-direction: column; gap: 8px; text-align: center; }
  .cl-login-logo { width: 60px; height: 60px; border-radius: 15px; font-size: 30px; }
  .cl-brand-name { font-size: 27px; letter-spacing: -1px; }
  .cl-login-brand p { font-size: 14px; margin-top: 3px; }
  .cl-desktop-welcome { display: none; }
  .cl-mobile-welcome { display: inline; }
  .cl-auth-card-top { margin: 20px 0 18px; }
  .cl-auth-card-top h1 { font-size: 30px; margin-bottom: 5px; }
  .cl-auth-card-top p { max-width: 310px; margin: auto; font-size: 16px; line-height: 1.4; }
  .cl-form-panel { padding: 19px 17px; border-radius: 20px; background: #ffffffed; box-shadow: 0 9px 32px #20334107; }
  .cl-auth-form { gap: 16px; }
  .cl-field label { font-size: 14px; margin-bottom: 7px; }
  .cl-input { min-height: 48px; }
  .cl-field-icon { top: 14px; }
  .cl-password-toggle { top: 2px; }
  .cl-alert { margin-bottom: 18px; font-size: 12px; }
  .cl-auth-submit { min-height: 50px; font-size: 19px; }
  .cl-login-footer { font-size: 12px; margin-top: 12px; }
}
@media (max-width: 350px) {
  .cl-auth-layout { padding-left: 12px; padding-right: 12px; }
  .cl-brand-name { font-size: 24px; }
  .cl-form-panel { padding: 16px 14px; }
}
