/* MAXSOFT v15 · login e cadastro profissionais, objetivos e consistentes */
:root{
  --auth-ink:#13283b;--auth-muted:#6e7f8f;--auth-line:#dce4eb;--auth-soft:#f5f7f9;
  --auth-navy:#122d47;--auth-navy-dark:#0d2237;--auth-blue:#155eef;--auth-blue-soft:#edf4ff;
  --auth-barber:#75502f;--auth-barber-dark:#5d3f25;--auth-barber-soft:#faf4ed;--auth-success:#18794e;
}
.max-auth-page{min-height:100vh;background:#f4f6f8;color:var(--auth-ink);font-family:inherit;display:flex;flex-direction:column}
.max-auth-topbar{width:min(1080px,calc(100% - 40px));height:84px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:20px}
.max-auth-brand{display:inline-flex;align-items:center;text-decoration:none}.max-auth-brand img{width:154px;max-height:42px;display:block}
.max-auth-install{min-height:38px;padding:0 13px;display:flex;align-items:center;gap:7px;border:1px solid var(--auth-line);border-radius:9px;background:#fff;color:#496176;font:inherit;font-size:.76rem;font-weight:750;cursor:pointer}.max-auth-install svg{width:16px;height:16px}
.max-auth-footer{width:min(1080px,calc(100% - 40px));margin:auto auto 0;padding:22px 0;display:flex;justify-content:center;gap:26px;color:#8795a2;font-size:.7rem}.max-auth-footer span{display:flex;align-items:center;gap:6px}.max-auth-footer svg{width:13px;height:13px;color:#628099}

/* Login */
.max-auth-login-page{background:linear-gradient(180deg,#f6f8fa 0,#eef2f5 100%)}
.max-auth-login-shell{width:min(900px,calc(100% - 40px));margin:auto;display:grid;grid-template-columns:minmax(250px,.78fr) minmax(390px,1.22fr);overflow:hidden;border:1px solid #dfe6ec;border-radius:22px;background:#fff;box-shadow:0 22px 60px rgba(31,52,72,.10)}
.max-auth-login-accent{padding:44px 36px;background:var(--auth-navy);color:#fff;display:flex;flex-direction:column;justify-content:space-between;min-height:470px}
.max-auth-mark{width:54px;height:54px;display:grid;place-items:center;border-radius:15px;background:rgba(255,255,255,.1)}.max-auth-mark img{width:31px;height:31px;filter:brightness(0) invert(1)}
.max-auth-login-accent>div b,.max-auth-login-accent>div span{display:block}.max-auth-login-accent>div b{font-size:1.12rem;letter-spacing:.08em}.max-auth-login-accent>div span{max-width:210px;margin-top:8px;color:#c9d5df;font-size:.9rem;line-height:1.55}
.max-auth-card{padding:52px 48px;align-self:center}
.max-auth-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:28px}.max-auth-heading-icon{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:12px;background:var(--auth-blue-soft);color:var(--auth-blue)}.max-auth-heading-icon.warning{background:#fff6e9;color:#9a6221}.max-auth-heading-icon svg{width:21px;height:21px}.max-auth-heading small{display:block;margin-top:1px;color:#71869a;font-size:.67rem;font-weight:850;letter-spacing:.09em}.max-auth-heading h1{margin:4px 0 5px;font-size:1.65rem;line-height:1.15;letter-spacing:-.035em;color:#112b43}.max-auth-heading p{margin:0;color:var(--auth-muted);font-size:.82rem;line-height:1.5}
.max-auth-alert{display:flex;align-items:flex-start;gap:9px;margin:0 0 18px;padding:11px 12px;border-radius:10px;font-size:.76rem;line-height:1.45}.max-auth-alert svg{width:16px;height:16px;flex:0 0 16px;margin-top:1px}.max-auth-alert.error{border:1px solid #ecc8c4;background:#fff3f2;color:#983d35}.max-auth-alert.success{border:1px solid #bee3ce;background:#f1fbf5;color:#246544}
.max-auth-form{display:grid;gap:16px}.max-auth-form label,.max-register-fields label{display:grid;gap:7px;margin:0;color:#314a60;font-size:.76rem;font-weight:780}.max-auth-input{height:48px;display:flex;align-items:center;gap:9px;padding:0 12px;border:1.5px solid #ccd7e0;border-radius:10px;background:#fff;transition:border-color .15s,box-shadow .15s}.max-auth-input:focus-within{border-color:#5c8ee8;box-shadow:0 0 0 3px rgba(21,94,239,.08)}.max-auth-input>svg{width:17px;height:17px;flex:0 0 17px;color:#788c9e}.max-auth-input input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#1a3449;font:inherit;font-size:.86rem}.max-auth-input input::placeholder{color:#a4afb9}.max-auth-input button{width:30px;height:30px;display:grid;place-items:center;flex:0 0 30px;border:0;background:transparent;color:#7d8d9b;cursor:pointer}.max-auth-input button svg{width:16px;height:16px}
.max-auth-submit{height:48px;margin-top:2px;display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:10px;background:var(--auth-navy);color:#fff;font:inherit;font-size:.84rem;font-weight:850;cursor:pointer;box-shadow:0 8px 20px rgba(18,45,71,.16);transition:.15s}.max-auth-submit:hover{background:var(--auth-navy-dark);transform:translateY(-1px)}.max-auth-submit svg{width:16px;height:16px}.max-auth-submit .arrow-forward{transform:rotate(180deg)}
.max-auth-register-cta{margin-top:26px;padding-top:22px;border-top:1px solid #e7edf1;text-align:center}.max-auth-register-cta>span{display:block;color:#8795a2;font-size:.72rem}.max-auth-register-cta>b{display:block;margin:4px auto 13px;max-width:320px;color:#425a6e;font-size:.78rem;line-height:1.5}.max-auth-register-cta>a{min-height:43px;padding:0 16px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #cfd9e2;border-radius:9px;background:#fff;color:#173c5d;font-size:.78rem;font-weight:820;text-decoration:none;transition:.15s}.max-auth-register-cta>a:hover{border-color:#aebfce;background:#f8fafb}.max-auth-register-cta>a svg{width:14px;height:14px}.max-auth-register-cta>a .arrow-forward{transform:rotate(180deg)}

/* Cadastro */
.max-register-page{background:#f5f6f8}.max-register-topbar{height:78px}.max-auth-existing{display:flex;align-items:center;gap:8px;color:#7a8996;font-size:.76rem;text-decoration:none}.max-auth-existing b{padding:8px 12px;border:1px solid #ced8e1;border-radius:8px;background:#fff;color:#24445f;font-size:.76rem}
.max-register-shell{width:min(920px,calc(100% - 40px));margin:18px auto 28px;padding:38px 42px 42px;border:1px solid #dfe5ea;border-radius:20px;background:#fff;box-shadow:0 18px 50px rgba(31,52,72,.08)}
.max-register-heading{text-align:center;margin-bottom:30px}.max-register-heading>small{display:block;color:#758899;font-size:.66rem;font-weight:900;letter-spacing:.12em}.max-register-heading h1{margin:5px 0 6px;color:#122d47;font-size:1.9rem;letter-spacing:-.04em}.max-register-heading p{margin:0;color:#738493;font-size:.84rem}.max-register-steps{max-width:300px;margin:22px auto 0;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;color:#83919e;font-size:.69rem;font-weight:780}.max-register-steps span{display:flex;align-items:center;gap:6px;white-space:nowrap}.max-register-steps b{width:22px;height:22px;display:grid;place-items:center;border-radius:999px;background:#edf1f4;color:#7d8b96;font-size:.68rem}.max-register-steps i{height:1px;background:#dde4e9}.max-register-steps .active{color:var(--auth-blue)}.max-register-steps .active b{background:var(--auth-blue);color:#fff}.max-register-steps.has-product span:last-child{color:#536b7f}.max-register-steps.has-product span:last-child b{background:#e7eef5;color:#35546e}
.max-register-alert{max-width:720px;margin:-8px auto 22px}.max-register-form{max-width:760px;margin:0 auto}.max-product-picker{margin:0;padding:0;border:0}.max-product-picker legend{width:100%;margin:0 0 10px;color:#263f54;font-size:.78rem;font-weight:850}.max-product-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.max-product-card{position:relative;min-height:96px;padding:14px;display:grid;grid-template-columns:46px minmax(0,1fr) 23px;align-items:center;gap:12px;border:1.5px solid #d8e1e8;border-radius:13px;background:#fff;cursor:pointer;transition:.16s;overflow:hidden}.max-product-card:hover{border-color:#b8c7d3;box-shadow:0 6px 18px rgba(37,64,88,.07);transform:translateY(-1px)}.max-product-card>input{position:absolute;opacity:0;pointer-events:none}.max-product-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:11px}.max-product-icon svg{width:23px;height:23px}.max-product-copy{min-width:0}.max-product-copy b,.max-product-copy small,.max-product-copy em{display:block}.max-product-copy b{color:#18364f;font-size:.88rem;font-weight:900}.max-product-copy small{margin-top:3px;color:#738391;font-size:.7rem;line-height:1.35}.max-product-copy em{width:max-content;margin-top:6px;padding:3px 7px;border-radius:999px;font-size:.61rem;font-style:normal;font-weight:850}.max-product-check{width:22px;height:22px;display:grid;place-items:center;border:1.5px solid #cbd5dd;border-radius:999px;background:#fff;color:transparent}.max-product-check svg{width:12px;height:12px}
.max-product-pdv .max-product-icon{background:var(--auth-blue-soft);color:var(--auth-blue)}.max-product-pdv .max-product-copy em{background:#edf4ff;color:#3569bd}.max-product-pdv:has(input:checked){border-color:var(--auth-blue);background:#f8fbff;box-shadow:0 0 0 3px rgba(21,94,239,.08)}.max-product-pdv:has(input:checked) .max-product-check{border-color:var(--auth-blue);background:var(--auth-blue);color:#fff}
.max-product-barber .max-product-icon{background:var(--auth-barber-soft);color:var(--auth-barber)}.max-product-barber .max-product-copy em{background:#f8f0e7;color:#7b5735}.max-product-barber:has(input:checked){border-color:var(--auth-barber);background:#fdfaf7;box-shadow:0 0 0 3px rgba(117,80,47,.08)}.max-product-barber:has(input:checked) .max-product-check{border-color:var(--auth-barber);background:var(--auth-barber);color:#fff}.max-product-card.is-disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.3)}
.max-register-divider{display:flex;align-items:center;gap:12px;margin:28px 0 18px;color:#6f8191;font-size:.72rem;font-weight:850}.max-register-divider:before,.max-register-divider:after{content:"";height:1px;flex:1;background:#e4eaee}.max-register-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.max-register-fields label>small{margin-top:-1px;color:#84919d;font-size:.66rem;font-weight:500}.max-span-2{grid-column:1/-1}.max-register-consent{margin:18px 0 14px;padding:11px 12px;display:flex;align-items:flex-start;gap:8px;border-radius:9px;background:#f5f7f8;color:#6c7c89;font-size:.69rem;line-height:1.45}.max-register-consent svg{width:15px;height:15px;flex:0 0 15px;color:#5e7a8f}.max-register-submit{width:100%;min-height:49px;display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:10px;background:var(--auth-navy);color:#fff;font:inherit;font-size:.82rem;font-weight:850;cursor:pointer;box-shadow:0 8px 20px rgba(18,45,71,.14);transition:.15s}.max-register-submit:hover:not(:disabled){background:var(--auth-navy-dark);transform:translateY(-1px)}.max-register-submit:disabled{background:#aeb8c0;box-shadow:none;cursor:not-allowed}.max-register-submit svg{width:16px;height:16px}.max-register-submit .arrow-forward{transform:rotate(180deg)}.max-register-form[data-product="maxpdv"] .max-register-submit{background:var(--auth-blue)}.max-register-form[data-product="maxpdv"] .max-register-submit:hover{background:#104fcf}.max-register-form[data-product="maxbarber"] .max-register-submit{background:var(--auth-barber)}.max-register-form[data-product="maxbarber"] .max-register-submit:hover{background:var(--auth-barber-dark)}

/* Device challenge harmonizado */
.max-auth-card .device-login-account{margin-bottom:12px}.max-auth-card .device-login-list{max-height:310px}.max-auth-card .device-login-cancel{margin-top:12px}

@supports not selector(:has(*)){
  .max-product-card input:checked~.max-product-check{color:#fff}
  .max-product-pdv input:checked~.max-product-check{border-color:var(--auth-blue);background:var(--auth-blue)}
  .max-product-barber input:checked~.max-product-check{border-color:var(--auth-barber);background:var(--auth-barber)}
}
@media(max-width:760px){
  .max-auth-topbar{width:min(100% - 28px,680px);height:70px}.max-auth-brand img{width:138px}.max-auth-login-shell{width:min(100% - 28px,520px);grid-template-columns:1fr}.max-auth-login-accent{min-height:auto;padding:22px 24px;display:block}.max-auth-login-accent .max-auth-mark{display:none}.max-auth-login-accent>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.max-auth-login-accent>div b{font-size:.9rem}.max-auth-login-accent>div span{margin:0;font-size:.72rem;text-align:right}.max-auth-card{padding:34px 28px}.max-auth-footer{width:calc(100% - 28px)}
  .max-register-shell{width:min(100% - 28px,620px);margin-top:8px;padding:30px 24px 32px}.max-product-grid{grid-template-columns:1fr}.max-register-fields{grid-template-columns:1fr}.max-span-2{grid-column:auto}
}
@media(max-width:430px){
  .max-auth-topbar{height:64px}.max-auth-install span{display:none}.max-auth-install{width:38px;padding:0;justify-content:center}.max-auth-login-shell{border-radius:16px}.max-auth-login-accent{padding:17px 20px}.max-auth-login-accent>div span{display:none}.max-auth-card{padding:29px 20px 26px}.max-auth-heading{margin-bottom:23px}.max-auth-heading-icon{width:40px;height:40px;flex-basis:40px}.max-auth-heading h1{font-size:1.45rem}.max-auth-register-cta{margin-top:22px}.max-auth-footer{padding:17px 0;gap:15px;font-size:.63rem}
  .max-register-topbar{height:64px}.max-auth-existing>span{display:none}.max-register-shell{padding:26px 18px 28px;border-radius:16px}.max-register-heading h1{font-size:1.6rem}.max-register-heading p{font-size:.77rem}.max-register-steps{max-width:260px}.max-product-card{min-height:88px;padding:12px;grid-template-columns:42px minmax(0,1fr) 22px}.max-product-icon{width:42px;height:42px}.max-register-divider{margin-top:24px}.max-auth-input{height:47px}
}

/* v16 · login separado, mais objetivo e profissional */
.max-auth-top-actions{display:flex;align-items:center;gap:8px}.max-auth-back-site{min-height:38px;padding:0 12px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--auth-line);border-radius:9px;background:#fff;color:#496176;font-size:.75rem;font-weight:780;text-decoration:none}.max-auth-back-site svg{width:14px;height:14px}.max-auth-login-page{background:radial-gradient(circle at 50% 12%,rgba(21,94,239,.07),transparent 27%),linear-gradient(180deg,#f8fafc 0,#eef2f5 100%)}.max-auth-login-stage{width:min(470px,calc(100% - 40px));margin:auto}.max-auth-login-stage.is-device-challenge{width:min(720px,calc(100% - 40px))}.max-auth-card-login{width:100%;padding:42px 40px 38px;border:1px solid #dce5ec;border-radius:20px;background:#fff;box-shadow:0 24px 68px rgba(28,52,73,.11)}.max-auth-login-brandmark{display:flex;justify-content:center;margin-bottom:17px}.max-auth-login-brandmark>span{width:49px;height:49px;display:grid;place-items:center;border-radius:14px;background:#f0f5f9;border:1px solid #e0e8ee}.max-auth-login-brandmark img{width:27px;height:27px}.max-auth-heading-centered{display:block;margin-bottom:26px;text-align:center}.max-auth-heading-centered h1{margin-top:5px;font-size:1.75rem}.max-auth-heading-centered p{font-size:.8rem}.max-auth-login-meta{display:flex;justify-content:center;margin-top:16px;color:#81909d;font-size:.67rem}.max-auth-login-meta span{display:flex;align-items:center;gap:5px}.max-auth-login-meta svg{width:13px;height:13px;color:#577a92}.max-auth-card-login .max-auth-register-cta{margin-top:20px;padding-top:18px}.max-auth-card-login .max-auth-register-cta>b{display:none}.max-auth-card-login .max-auth-register-cta>a{margin-top:9px}.max-auth-card-login .max-auth-form{gap:15px}.max-auth-card-login .max-auth-submit{margin-top:5px}.max-auth-card-login .device-login-list{max-height:330px}
@media(max-width:600px){.max-auth-login-stage,.max-auth-login-stage.is-device-challenge{width:calc(100% - 28px)}.max-auth-card-login{padding:34px 24px 30px;border-radius:17px}.max-auth-back-site span{display:none}.max-auth-back-site{width:38px;padding:0;justify-content:center}.max-auth-top-actions{gap:6px}}
@media(max-width:400px){.max-auth-card-login{padding:30px 18px 27px}.max-auth-heading-centered h1{font-size:1.55rem}}
