*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;--blue:#1261df}button,input{font:inherit}button{cursor:pointer}[hidden]{display:none!important}.form-group input{width:100%;min-width:0;padding:8px 10px;outline:none}.form-group label{display:block}.password-field{position:relative}.auth-input-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.auth-forgot-password{padding:0;border:0;background:none;color:#0066ff;font-size:11px}.auth-form-meta{min-height:48px}.register-note{font-size:11px;line-height:1.4}button:disabled{opacity:.6;cursor:wait}
.password-toggle{
    position:absolute;
    top:50%;
    right:8px;
    transform:translateY(-50%);
    height:24px;
    padding:0 3px;
    border:0;
    background:transparent;
    color:#68758a;
    font-size:11px;
    font-weight:500;
    cursor:pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible{
    background:transparent;
    color:#3f4b5f;
    outline:none;
}

.login-btn{
    width:100%;
    height:41px;
    margin-top:5px;
    border:0;
    border-radius:9px;
    background:var(--blue);
    color:#fff;
    font-size:11px;
    font-weight:500;
    cursor:pointer;
}

/* MCFG Cloud-inspired authentication portal, adapted for billing. */
.login-screen{padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);overflow-y:auto;background:radial-gradient(circle at 18% 6%,#243055 0,#171d34 34%,#11172a 100%);color:#fff}
.auth-portal{width:100%;min-height:100dvh;display:grid;grid-template-rows:minmax(0,1fr) 56px}
.auth-portal .auth-portal-top{display:none}
.auth-portal-top,.auth-portal-footer{display:flex;align-items:center;justify-content:space-between;width:min(1120px,calc(100% - 48px));margin:0 auto}
.auth-portal-brand{display:flex;align-items:center;gap:10px;color:#fff;font-size:11px;font-weight:500;letter-spacing:.08em}.auth-portal-brand img{width:42px;height:42px;border-radius:12px;background:#fff;object-fit:cover;box-shadow:0 8px 22px rgba(0,0,0,.2)}
.auth-portal-switch{height:40px;padding:0 18px;border:1px solid rgba(255,255,255,.13);border-radius:11px;background:rgba(255,255,255,.025);color:#fff;font-size:11px;font-weight:500;cursor:pointer}.auth-portal-switch:hover{border-color:rgba(113,125,255,.7);background:rgba(87,96,230,.12)}
.login-card{display:grid;grid-template-columns:46% 54%;align-self:center;width:min(900px,calc(100% - 40px));min-height:450px;margin:22px auto;padding:0;overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:22px;background:#1a2035;box-shadow:0 28px 80px rgba(3,7,20,.34)}
.auth-promo{position:relative;overflow:hidden;padding:34px 36px;background:linear-gradient(145deg,#1261df 0%,#2f7af0 100%)}.auth-promo:after{content:"";position:absolute;right:-85px;bottom:-95px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.12)}
.auth-promo-brandline{position:relative;z-index:1;display:flex;align-items:center;gap:14px}.auth-home-link{display:inline-flex;align-items:center;flex:none;border-radius:13px;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}.auth-home-link img{width:58px;height:58px;border-radius:13px;background:#fff;object-fit:contain;box-shadow:0 9px 22px rgba(12,38,104,.24)}.auth-home-link:hover{transform:translateY(-2px)}.auth-home-link:focus-visible{outline:3px solid rgba(255,255,255,.78);outline-offset:4px}
.auth-promo-badge{display:inline-flex;align-items:center;gap:9px;color:rgba(255,255,255,.94);font-size:11px;font-weight:500;letter-spacing:.11em;text-transform:uppercase;text-shadow:0 1px 8px rgba(8,38,109,.2)}.auth-promo-badge:before{width:18px;height:2px;border-radius:999px;background:rgba(255,255,255,.72);content:""}.auth-promo h1{margin:22px 0 12px;color:#fff;font-size:35px;line-height:1.08;letter-spacing:-.04em}.auth-promo p{max-width:350px;margin:0;color:#fff;font-size:11px;font-weight:500;line-height:1.65}.auth-feature-list{display:grid;gap:10px;margin-top:20px}.auth-feature{display:flex;align-items:center;gap:9px;color:#fff;font-size:11px;font-weight:600}.auth-feature i{width:20px;height:20px;display:grid;flex:none;border-radius:6px;background:rgba(255,255,255,.18);color:#fff;font-style:normal;place-items:center}
.auth-form-panel{display:flex;flex-direction:column;justify-content:center;padding:30px 36px;color:#fff}.auth-form-heading h2{margin:0;color:#fff;font-size:25px}.auth-form-heading p{margin:6px 0 19px;color:#929bb1;font-size:11px}.auth-form-panel .form-group{margin-bottom:11px}.auth-form-panel .form-group label{color:#d3d7e4;font-size:11px}.auth-form-panel input{height:42px;border:1px solid rgba(255,255,255,.12);border-radius:9px;background:rgba(10,14,28,.13);color:#fff;font-size:11px}.auth-form-panel input::placeholder{color:#727c94}.auth-form-panel input:focus{border-color:#2f7af0;box-shadow:0 0 0 3px rgba(47,122,240,.13)}.auth-form-panel .password-toggle{color:#9da5b8}.auth-form-panel .login-btn{height:43px;margin-top:3px;background:linear-gradient(90deg,#1261df,#2f7af0);box-shadow:0 9px 23px rgba(18,97,223,.24)}
.auth-form-meta{display:flex;align-items:center;justify-content:space-between;margin:-1px 0 10px;color:#9ba4b8;font-size:11px}.auth-remember{display:flex;align-items:center;gap:7px}.auth-remember input{width:14px;height:14px}.auth-form-link{padding:0;border:0;background:transparent;color:#176be6;font-size:11px;font-weight:500;cursor:pointer}.auth-form-divider{height:1px;margin:15px 0;background:rgba(255,255,255,.09)}.auth-form-alternate{color:#aeb5c5;font-size:11px;text-align:center}.auth-form-alternate button{padding:0;border:0;background:transparent;color:#176be6;font:inherit;font-weight:500;cursor:pointer}.auth-form-panel .login-error{color:#ff8292}.auth-form-panel .register-success{color:#63daa0}.auth-form-panel .register-note{color:#858fa5}.auth-terms{display:flex;align-items:flex-start;gap:8px;margin:1px 0 9px;color:#aeb5c5;font-size:11px;line-height:1.4}.auth-terms input{width:14px;height:14px;flex:none;margin-top:1px}.auth-portal-footer{border-top:1px solid rgba(255,255,255,.08);color:#8790a6;font-size:11px}.auth-portal-footer strong{color:#c9cfdd}
/* Authentication uses the app's light theme until a system-wide dark mode is added. */
.login-screen{background:radial-gradient(circle at 18% 5%,#eef3ff 0,#f4f7fb 42%,#edf2f8 100%);color:#263249}
.auth-portal-brand{color:#263249}.auth-portal-switch{border-color:#d7e0ec;background:#fff;color:#45546c}.auth-portal-switch:hover{border-color:#9fb6ee;background:#f3f6ff;color:var(--blue)}
.login-card{border-color:#dce4ef;background:#fff;box-shadow:0 28px 70px rgba(39,56,84,.13)}
.auth-form-panel{color:#263249}.auth-form-heading h2{color:#202a3e}.auth-form-heading p{color:#7e8ba0}.auth-form-panel .form-group label{color:#536178}.auth-form-panel input{border-color:#d7e0ec;background:#fff;color:#263249}.auth-form-panel input::placeholder{color:#9aa5b5}.auth-form-panel input:focus{border-color:#6684ef;box-shadow:0 0 0 3px rgba(69,104,225,.11)}.auth-form-panel .password-toggle{color:#68758a}
.auth-form-meta,.auth-form-alternate,.auth-terms{color:#758299}.auth-form-divider{background:#e6ebf2}.auth-form-panel .register-note{color:#7d899c}.auth-portal-footer{border-top-color:#dce4ef;color:#7e8a9e}.auth-portal-footer strong{color:#3d4a60}
@media(max-width:760px){.auth-portal{grid-template-rows:minmax(0,1fr) 42px}.auth-portal-footer{width:calc(100% - 28px)}.login-card{grid-template-columns:1fr;min-height:0;margin:10px auto;border-radius:17px}.auth-promo{display:block;min-height:126px;padding:13px 20px}.auth-promo:after{right:-55px;bottom:-75px;width:170px;height:170px}.auth-promo-brandline{gap:10px}.auth-home-link img{width:38px;height:38px;border-radius:9px}.auth-promo-badge{gap:6px;font-size:11px}.auth-promo-badge:before{width:11px}.auth-promo h1{margin:9px 0 5px;font-size:21px}.auth-promo p{max-width:330px;font-size:11px;line-height:1.35}.auth-feature-list{display:none}.auth-form-panel{padding:21px 21px}.auth-form-heading h2{font-size:22px}.auth-form-heading p{margin-bottom:16px}.auth-form-panel input{height:40px}.auth-form-panel .login-btn{height:42px}.auth-portal-footer span:last-child{display:none}}
@media(max-width:420px){.login-card{width:calc(100% - 14px);margin:7px auto}.auth-promo{min-height:120px;padding:12px 16px}.auth-promo h1{font-size:20px}.auth-form-panel{padding:19px 17px}}

.login-error{
    min-height:16px;
    margin-top:8px;
    color:#dc4455;
    font-size:11px;
}


/* Compact public sign-in/register forms; do not affect dashboard editors. */
/* Keep hierarchy through size and spacing, without heavy bold form copy. */
#loginScreen .auth-promo h1,#loginScreen .auth-form-heading h2{font-weight:500}
#loginScreen .auth-promo p,#loginScreen .auth-feature,#loginScreen .auth-form-heading p,
#loginScreen .form-group label,#loginScreen input,#loginScreen input::placeholder,
#loginScreen .auth-remember,#loginScreen .auth-terms,#loginScreen .register-note,
#loginScreen .auth-form-alternate{font-weight:400}
#loginScreen .login-btn,#loginScreen .auth-promo-badge{font-weight:500}
#loginScreen .login-card{min-height:0;max-width:700px}
#loginScreen .auth-promo{padding:22px}
#loginScreen .auth-form-panel{padding:20px 22px}
#loginScreen .auth-form-heading p{margin:4px 0 12px}
#loginScreen .auth-form-heading:has(#authFormSubtitle[hidden]){margin-bottom:12px}
#loginForm .login-icon-field{position:relative}
#loginForm .login-field-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:17px;height:17px;fill:none;stroke:#718097;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#loginForm .login-icon-field input{padding-left:38px}
#loginForm .password-field input{padding-right:48px}
#toggleLoginPassword svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
#toggleLoginPassword[aria-pressed="true"] .eye-slash{display:none}
#loginScreen .form-group{margin-bottom:9px}
#loginScreen #loginForm > .form-group:first-child{margin-bottom:14px}
#loginScreen .form-group label{margin-bottom:4px}
#loginScreen .auth-form-meta{margin:0 0 8px}
#loginScreen .auth-terms{margin:0 0 8px}
#loginScreen .login-btn{height:44px;margin-top:2px;box-shadow:0 5px 14px rgba(18,97,223,.16)}
#loginScreen .login-error:empty,#loginScreen .register-success:empty{display:none}
#loginScreen .login-error,#loginScreen .register-success{min-height:0;margin:8px 0 0}
#loginScreen .register-note{margin:6px 0 0}
#loginScreen .auth-form-divider{margin:12px 0}
@media(max-width:760px){
 #loginScreen .login-card{width:calc(100% - 56px);max-width:320px}
 #loginScreen .auth-promo{min-height:0;padding:10px 16px}
 #loginScreen .auth-promo h1{margin:6px 0 4px;font-size:19px}
 #loginScreen .auth-home-link img{width:28px;height:28px}
 #loginScreen .auth-form-panel{padding:14px 16px}
 #loginScreen .auth-form-heading h2{font-size:20px}
 #loginScreen .form-group{margin-bottom:8px}
 #loginScreen .auth-form-divider{margin:10px 0}
 #loginScreen .form-group input{height:40px;font-size:16px}
 #loginScreen .auth-promo-badge{font-size:10px;letter-spacing:.08em}
}
.auth-form-panel input:not([type=checkbox]){font-size:16px;height:40px}.auth-portal{grid-template-rows:1fr}.auth-portal-footer{display:none}.auth-promo>*{position:relative;z-index:1}.login-field-icon{position:absolute;pointer-events:none}.payment-modal-bg{display:none;position:fixed;inset:0;background:#17203366;align-items:center;justify-content:center;padding:24px;z-index:10}.payment-modal-bg.show{display:flex}.payment-modal{position:relative;max-width:360px;width:100%;max-height:90dvh;overflow:auto;padding:18px;border-radius:14px;background:white;color:#263249}.payment-modal h3{margin:0 30px 8px 0;font-size:17px}.payment-modal-subtitle{font-size:12px;color:#718097;line-height:1.5;margin-bottom:15px}.payment-modal input{height:40px;font-size:16px;border:1px solid #d7e0ec;border-radius:8px}.payment-modal label{font-size:12px;margin-bottom:4px}.payment-modal-actions{display:flex;justify-content:end;gap:8px;margin-top:15px}.payment-modal-actions button{padding:9px;border:1px solid #d7e0ec;border-radius:8px;background:white}.payment-modal-actions .confirm-payment{background:#1261df;color:white}.payment-modal-close-x{position:absolute;right:12px;top:12px;background:white;border:1px solid #d7e0ec;border-radius:7px;width:28px;height:28px}.password-request-status{font-size:12px;margin-top:8px}.login-error{color:#dc4455!important}.register-success{color:#138647!important}.auth-form input:focus-visible,button:focus-visible{outline:2px solid #8baafa;outline-offset:2px}
