/* Área do aluno: identidade e acesso acessível */
.auth-statusbar{background:#eef5f8;border-bottom:1px solid #d9e4ec;color:#173653;position:relative;z-index:25}
.auth-statusbar>.wrap{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding-block:10px;min-height:66px}
.auth-welcome{display:flex;flex-direction:column;gap:0;line-height:1.3;text-align:right;margin-right:2px}
.auth-welcome strong{font-size:clamp(.91rem,1.4vw,1.05rem);font-weight:850;color:#123454}
.auth-welcome > span{font-size:.75rem;line-height:1.5;color:#516c81}
.auth-enter{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:11px;background:#123b65;color:#fff!important;padding:10px 14px;text-decoration:none;font-size:.82rem;font-weight:800;white-space:nowrap;min-height:40px}
.auth-enter:hover{background:#0e2c4e}
.auth-logout{border:1px solid #aebfc9;border-radius:10px;background:transparent;color:#23465f;font-size:.76rem;font-weight:750;padding:9px 11px;cursor:pointer;min-height:38px}
.auth-logout[hidden],.auth-message[hidden]{display:none!important}
.auth-page{padding-block:clamp(28px,5vw,68px)}
.auth-page .auth-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(280px,.85fr);gap:clamp(24px,5vw,66px);align-items:start}
.auth-page .auth-eyebrow{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;font-weight:850;color:#07827f;display:flex;align-items:center;gap:8px;margin-bottom:13px}
.auth-page h1{font-size:clamp(2rem,5vw,3.4rem);color:#123454;font-weight:850;line-height:1.15;letter-spacing:-.045em;margin:0 0 18px}
.auth-page .auth-lead{font-size:1.07rem;color:#40586b;max-width:57ch;line-height:1.78}
.auth-benefits{list-style:none;margin:26px 0 0;padding:0;display:grid;gap:14px}
.auth-benefits li{display:flex;align-items:start;gap:11px;font-weight:680;color:#244459}
.auth-benefits .symbol{color:#07827f;font-weight:900}
.auth-card{background:#fff;border:1px solid #dce5ec;border-radius:22px;box-shadow:0 22px 48px rgba(14,40,70,.09);padding:clamp(22px,4vw,34px)}
.auth-card h2{font-size:1.4rem;letter-spacing:-.025em;margin:0 0 8px;color:#173653}
.auth-card .auth-description{color:#607387;font-size:.91rem;margin-bottom:20px}
.auth-provider{display:flex;align-items:center;justify-content:center;gap:11px;width:100%;min-height:54px;padding:12px 16px;margin:0 0 11px;border-radius:12px;background:#fff;border:1.5px solid #cbd9e4;color:#173653;font-size:1rem;font-weight:780;cursor:pointer;transition:background .16s,border-color .16s;box-shadow:none}
.auth-provider:hover:not(:disabled){background:#eff6f8;border-color:#4d829f}
.auth-provider:focus-visible{outline:3px solid #ffd05a;outline-offset:2px}
.auth-provider.google{border-color:#c7d5e1}
.auth-provider.email{background:#103b65;color:#fff;border-color:#103b65}
.auth-provider.email:hover{background:#09294b}
.auth-provider .provider-icon{width:23px;height:23px;display:grid;place-items:center;flex-shrink:0;font-size:1.25rem;font-weight:900}
.auth-provider .provider-icon.google-mark{font-family:Arial,sans-serif;color:#4285f4;font-size:1.45rem}
.auth-provider[disabled]{opacity:.5;cursor:not-allowed;background:#edf2f5}
.auth-others{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.auth-others .auth-provider{font-size:.8rem;flex-direction:column;padding:10px 6px;gap:4px;min-height:72px}
.auth-others small{font-size:.66rem;font-weight:600}
.auth-rule{display:flex;align-items:center;gap:11px;color:#8a98a5;font-size:.78rem;margin:18px 0}
.auth-rule:before,.auth-rule:after{content:'';height:1px;background:#e0e8ee;flex:1}
.auth-guest-link{display:block;text-align:center;color:#2b627c;text-decoration:underline;text-underline-offset:3px;font-weight:700;font-size:.89rem;margin:19px 0 4px}
.auth-privacy{font-size:.76rem!important;color:#6e8190;line-height:1.55;margin:15px 0 0!important}
.auth-message{margin:14px 0;background:#e7f5f0;border:1px solid #b7e7da;border-radius:11px;padding:11px;color:#165e50;font-weight:660;font-size:.86rem}
.auth-message.error{background:#fff1f2;color:#972f43;border-color:#efbdc6}
.auth-field{display:flex;flex-direction:column;gap:7px;margin:14px 0}
.auth-field label{font-size:.91rem;font-weight:800;color:#21405b}
.auth-field input{min-height:51px;border:1px solid #bacbd9;border-radius:11px;padding:12px 14px;font:inherit;color:#173653;background:#fff;width:100%}
.auth-field input:focus{outline:3px solid #ffdc73;border-color:#0c707b}
.auth-checkbox{display:flex;gap:8px;align-items:flex-start;font-size:.84rem;color:#496175;line-height:1.55;margin-top:14px}
.auth-checkbox input{flex:none;width:18px;height:18px;margin-top:3px}
.auth-submit{width:100%;min-height:52px;border:none;border-radius:12px;background:#ffd05a;color:#173653;font-weight:850;font-size:1.03rem;margin-top:20px;cursor:pointer}
.auth-submit:hover{background:#ffbd2c}
.auth-summary{border:1px solid #d9e7ef;background:#f1f7fa;padding:17px 18px;border-radius:13px;margin:18px 0 0;color:#2f5165;font-size:.89rem;line-height:1.6}
.auth-summary strong{color:#173653}
.auth-profile-link{display:inline-block;margin-top:18px;font-weight:750;font-size:.88rem}
.auth-update-guest{margin-top:18px;padding:15px 18px;border-radius:12px;border:1px dashed #d2e3e9;background:#f6fafb;color:#416173;font-size:.85rem}
#sync-indicator{font-weight:720;color:#206b69;line-height:1.5}
@media(max-width:820px){.auth-page .auth-layout{grid-template-columns:1fr}.auth-page .auth-card{max-width:560px;width:100%;margin:0 auto}.auth-benefits{margin-bottom:10px}}
@media(max-width:580px){.auth-statusbar>.wrap{padding:9px 15px;min-height:63px;gap:9px}.auth-welcome{flex:1;text-align:left}.auth-welcome strong{font-size:.89rem}.auth-welcome > span{font-size:.71rem;max-width:30ch}.auth-enter{padding:9px 11px;font-size:.74rem;min-height:38px}.auth-logout{font-size:.71rem;padding:8px 9px}.auth-page .auth-layout{gap:21px}.auth-page .auth-lead{font-size:.98rem}.auth-page .auth-card{border-radius:16px;padding:20px 17px}.auth-page h1{font-size:clamp(1.85rem,9vw,2.65rem)}}

.auth-private[hidden],.auth-gate[hidden]{display:none!important}

/* Autenticacao contextual e correção de leitura móvel, v51 */
#account-panel-note{display:grid;grid-template-columns:22px minmax(0,1fr);gap:14px;align-items:start;}
#account-panel-note .p-icon{width:22px;height:22px;flex:none;margin-top:3px;}
#account-panel-note .panel-note-copy-v51{width:100%;min-width:0;}
#account-panel-note .panel-note-copy-v51 p{margin:5px 0 0;max-width:100%;overflow-wrap:break-word;word-break:normal;}
#account-panel-note #sync-indicator{display:block;margin-top:10px;font-size:.79rem;line-height:1.5;}
#account-panel-note #sync-indicator[hidden]{display:none!important;}
#account-login-cta-v51[hidden],#profile-pending-v51[hidden],#auth-method-card-v51[hidden],#auth-intro-v51[hidden],#auth-connected-v51[hidden]{display:none!important;}
.auth-connected-layout-v51 .auth-page .auth-layout{grid-template-columns:minmax(0,650px);justify-content:center;}
.auth-connected-layout-v51 #auth-connected-v51{width:100%;max-width:650px;margin-inline:auto;text-align:center;}
.auth-connected-layout-v51 #auth-connected-go-v51{display:inline-flex;text-decoration:none;}
@media(max-width:580px){
 #account-panel-note{padding:16px;gap:12px;}
 #account-panel-note strong{font-size:.98rem;}
 #account-panel-note p{font-size:.85rem;line-height:1.6;}
 #account-login-cta-v51{margin:8px 0 22px;}
}
/* Botões de acesso e instalação e janela de login, v53. */
body .auth-statusbar #student-login[href^="/acesso.html"]{
 display:inline-flex!important;align-items:center;justify-content:center;gap:7px;
 color:white!important;background:linear-gradient(130deg,#08799e,#155a91)!important;
 border:1px solid #52bed6!important;border-radius:11px!important;
 font-size:.84rem!important;font-weight:850!important;padding:11px 16px!important;min-height:44px!important;
 box-shadow:0 4px 14px rgba(12,71,117,.2)!important;text-decoration:none;
}
body .auth-statusbar #student-login[hidden]{display:none!important}
body .auth-statusbar #student-login[href^="/acesso.html"]:hover{background:#0e78a1!important}
body .auth-statusbar #student-login[href^="/acesso.html"] svg{stroke:white}
body .top .desktop-nav a.install-menu-v53,
body .top .mobile-menu nav.mobile-nav a.install-menu-v53{
 background:#f6c946!important;color:#152e50!important;border:1px solid #cb9825!important;
 border-radius:8px!important;font-weight:870!important;padding:7px 10px!important;
 min-height:44px!important;display:inline-flex!important;align-items:center!important;gap:8px!important;
 text-shadow:none!important;box-shadow:0 3px 12px rgba(108,70,13,.15)!important;
}
body .top .desktop-nav a.install-menu-v53:hover,
body .top .mobile-menu nav.mobile-nav a.install-menu-v53:hover{
 background:#ffe076!important;color:#152e50!important
}
body .top .desktop-nav a.install-menu-v53 .install-monitor-v53,
body .top .mobile-menu nav.mobile-nav a.install-menu-v53 .install-monitor-v53{
 flex:0 0 29px;display:grid;place-items:center;width:29px;height:29px;
 border-radius:6px;background:#14345a;color:#f4ce61
}
body .top .desktop-nav a.install-menu-v53 svg,
body .top .mobile-menu nav.mobile-nav a.install-menu-v53 svg{
 flex:none!important;width:20px!important;height:20px!important;
 stroke:currentColor!important;color:inherit!important;box-sizing:border-box!important;
 padding:0!important;background:none!important;filter:none!important
}
body .top .mobile-menu nav.mobile-nav a.guest-login-v53{
 display:flex!important;align-items:center;gap:11px!important;
 background:linear-gradient(120deg,#17658f,#103d70)!important;
 color:white!important;border:1px solid #4bb2cf!important;font-weight:850!important;
 border-radius:11px!important;min-height:51px!important;margin:1px 0 10px!important;
}
body .top .mobile-menu nav.mobile-nav a.guest-login-v53[hidden]{display:none!important}
body .top .mobile-menu nav.mobile-nav a.guest-login-v53 svg{stroke:white!important;width:20px!important;height:20px!important}
body .top .mobile-menu nav.mobile-nav a.install-menu-v53{min-height:54px!important;margin-top:7px!important}
a[data-native-install]{color:#173451!important;background:#f5c742!important;border:1px solid #cb9825!important;border-radius:9px!important;font-weight:850!important}
body.auth-access-page-v53 .page-hero{padding:18px 0!important}
body.auth-access-page-v53 .page-hero h1{font-size:clamp(1.7rem,3vw,2.35rem);margin-bottom:6px}
body.auth-access-page-v53 .page-hero p{margin-bottom:0;font-size:.93rem}
body.auth-access-page-v53 .auth-page{padding-block:clamp(16px,2.5vw,27px)}
.login-choice-v53{width:min(94vw,465px);max-height:90dvh;box-sizing:border-box;border:0;padding:0;background:transparent;color:#173653;overflow:visible}
.login-choice-v53:not([open]){display:none!important}
.login-choice-v53::backdrop{background:rgba(5,23,45,.7);backdrop-filter:blur(2px)}
.login-choice-inner-v53{
 position:relative;box-sizing:border-box;max-height:90dvh;overflow-y:auto;
 padding:clamp(20px,5vw,30px);
 border:1px solid #d4e3ed;border-top:4px solid #e9b846;
 border-radius:19px;background:linear-gradient(#fff,#f5f9fc);
 box-shadow:0 25px 65px rgba(3,20,41,.28);
}
.login-choice-inner-v53 *{box-sizing:border-box}
.login-choice-close-v53{position:absolute;top:12px;right:13px;display:grid;place-items:center;width:36px;height:36px;border:1px solid #d7e5ee;background:#eaf2f7;color:#2e4d66;border-radius:9px;font-size:1.5rem;cursor:pointer}
.login-choice-label-v53{font-size:.73rem;color:#087889;letter-spacing:.11em;font-weight:900;margin-bottom:10px}
.login-choice-v53 h2{font-size:clamp(1.4rem,5vw,1.8rem);line-height:1.22;color:#163858;margin:0 32px 9px 0}
.login-choice-v53 #login-choice-desc-v53{font-size:.87rem;line-height:1.55;color:#536c7d;margin:0 0 17px}
.login-choice-options-v53{display:grid;gap:10px}
.login-choice-options-v53 button{
 width:100%;min-height:53px;border:1px solid #cbdce8;border-radius:11px;
 background:white;color:#173653;font:inherit;font-size:.92rem;font-weight:780;
 text-align:left;display:flex;align-items:center;gap:12px;padding:10px 13px;cursor:pointer;
}
.login-choice-options-v53 button:hover{border-color:#2c92b2;background:#eff8fc}
.login-choice-options-v53 button[data-login-method-v53="email"]{background:#153f68;border-color:#153f68;color:white}
.login-choice-icon-v53{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:7px;background:#ebf3f7;color:#13658a;font-weight:850;font-size:1.2rem}
.login-choice-icon-v53.google{background:white;color:#4285f4}
.login-choice-icon-v53.email{background:rgba(255,255,255,.16);color:white}
.login-choice-small-v53{margin:19px 0 7px;color:#5e7486;font-size:.76rem;font-weight:740}
.login-choice-upcoming-v53{display:flex;flex-wrap:wrap;gap:7px}
.login-choice-upcoming-v53 span{padding:6px 9px;background:#e9eff4;border:1px solid #dce4ea;border-radius:7px;font-size:.74rem;color:#63798a}
.login-choice-v53 .auth-message{margin-top:13px}
.login-choice-v53 .auth-message[hidden]{display:none!important}
.login-choice-foot-v53{font-size:.75rem;color:#5f7588;margin:16px 0 7px;line-height:1.5}
.login-choice-full-v53{font-size:.78rem;font-weight:760;color:#135a85}
.login-choice-v53 :is(button,a):focus-visible{outline:3px solid #e6b73b;outline-offset:3px}
@media(max-width:580px){
 body .auth-statusbar #student-login[href^="/acesso.html"]{padding:9px 12px!important;font-size:.76rem!important;min-height:40px!important}
 .login-choice-inner-v53{padding:23px 18px;border-radius:16px}
}
@media(prefers-reduced-motion:no-preference){
 .login-choice-v53[open] .login-choice-inner-v53{animation:choice-in-v53 .16s ease-out both}
 @keyframes choice-in-v53{from{opacity:.6;transform:translateY(7px)}to{opacity:1;transform:none}}
}

.return-summary-v57[hidden]{display:none!important}
.return-summary-v57{display:flex;gap:15px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:16px auto 20px;padding:16px 18px;background:#edf8f6;border:1px solid #c3e0da;border-left:4px solid #16847a;border-radius:13px;box-sizing:border-box;max-width:100%}
.return-summary-v57>div{flex:1 1 270px;min-width:0}
.return-kicker-v57{display:block;font-size:.7rem;letter-spacing:.075em;font-weight:800;color:#227873;margin-bottom:5px}
.return-summary-v57 h2{font-size:clamp(1rem,2vw,1.2rem);color:#123b57;margin:0 0 5px}
.return-summary-v57 p{font-size:.86rem;color:#486679;margin:0;line-height:1.48;word-break:normal;overflow-wrap:break-word}
.return-summary-v57 a{display:inline-flex;justify-content:center;align-items:center;min-height:42px;padding:9px 13px;background:#146e76;color:white!important;border-radius:9px;font-size:.82rem;font-weight:800;text-align:center;text-decoration:none!important}
.return-summary-v57 a:focus-visible{outline:3px solid #d8aa32;outline-offset:2px}
@media(max-width:540px){.return-summary-v57 a{flex:1 1 100%}}

/* Evita solicitação de login antes de confirmar o estado real da sessão. */
body:not(.auth-state-ready-v83) #student-hint,body:not(.auth-state-ready-v83) #student-login{visibility:hidden}
