*{box-sizing:border-box}html{min-height:100%;color:#173b4c;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{margin:0;min-height:100dvh;display:flex;flex-direction:column;background:radial-gradient(at 5% 5%,#d9e9fd,transparent 60%),radial-gradient(at 90% 20%,#ece5fa,transparent 55%),radial-gradient(at 80% 95%,#e0f4eb,transparent 65%),#f3f6fa;background-attachment:fixed}header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 5%;background:#ffffff8c;backdrop-filter:blur(18px)}.brand img{display:block;height:38px;width:auto}a{color:#175e8b;text-decoration:none}a:hover{text-decoration:underline}header nav{display:flex;align-items:center;gap:20px}header nav span{font-size:14px;color:#536f81}main{width:min(1200px,92%);margin:36px auto;flex:1}.login-layout{display:grid;grid-template-columns:1.12fr 1fr;gap:50px;align-items:center;min-height:68vh}.hero{padding:28px}.eyebrow{font-size:13px;font-weight:650;letter-spacing:1.6px;color:#637b91}h1{font-size:28px;line-height:1.35;margin:12px 0 18px}h2{font-size:21px;margin:0 0 20px}.hero h1{font-size:28px}.hero p{max-width:430px}.muted{color:#61788c}.small{font-size:14px}.panel{padding:28px;border-radius:24px;background:#ffffffb0;box-shadow:0 14px 45px #1b45600a;min-width:0}.login-panel{padding:38px}.login-panel>p{margin-bottom:30px}form{display:grid;gap:18px}label{display:grid;gap:8px;font-size:14px;font-weight:550}input,select{width:100%;font:inherit;font-size:16px;padding:13px 15px;min-height:48px;border:1px solid #ccd9e4;border-radius:12px;background:#ffffffb3;color:#173b4c;outline:none}input:focus,select:focus{border-color:#2779c8;box-shadow:0 0 0 3px #3188d823}button,.button{font:inherit;min-height:46px;padding:11px 18px;border:0;border-radius:12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:14px;text-decoration:none;font-weight:600}button:hover,.button:hover{filter:brightness(.97);text-decoration:none}.primary{background:#195d8d;color:#fff}.secondary{background:#e8eef5;color:#26536e}.primary span{margin-left:auto}button:disabled{opacity:.6;cursor:wait}@keyframes spin{to{transform:rotate(360deg)}}.password-field{position:relative}.password-field input{padding-right:54px}.reveal{position:absolute;right:4px;top:3px;min-height:42px;padding:8px;background:transparent;color:#658298}.module-grid,.access-grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));margin-top:38px}.module-tile{display:grid;gap:18px;padding:22px;background:#ffffff9e;border-radius:22px;color:#637b8b;font-size:14px}.module-tile img{height:28px;width:auto;max-width:100%;object-fit:contain;object-position:left}.page-heading{margin:10px 0 30px}.access-card{position:relative;padding:28px;border-radius:24px;min-height:210px;background:#dceafbb0;color:#183f62;box-shadow:0 10px 36px #173b4c0a;transition:transform .2s,box-shadow .2s}.access-card:hover{transform:translateY(-3px);box-shadow:0 15px 38px #173b4c15;text-decoration:none}.access-card.pickup{background:#d7f1e7bc}.access-card.gestao{background:#fff0d5c9}.access-card h2{margin:18px 0 10px}.access-card p{margin:0 0 18px}.access-card .arrow{position:absolute;right:26px;bottom:24px;font-size:24px}.icon{display:inline-grid;place-items:center;background:#ffffffb5;border-radius:13px;width:42px;height:42px;font-size:23px;vertical-align:middle;margin-right:8px}.tag{font-size:13px;padding:5px 10px;border-radius:14px;background:#ffffff7a}.activation{max-width:520px;margin:auto}.activation>a{display:inline-block;margin-top:24px}.empty{text-align:center;padding:50px}.management-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-bottom:24px}.management-grid .panel h2{display:flex;align-items:center}.blue{color:#216bc3;background:#e1eeff}.teal{color:#0f827a;background:#dff6ee}.coral{color:#ce675a;background:#ffe7e3}.amber{color:#986512;background:#fff2cd}.switch-row,.grant-row{display:flex;gap:18px;align-items:center;justify-content:space-between;margin:14px 0;padding:16px;border-radius:16px;background:#e8eef580}.switch-row input{width:21px;min-height:21px;accent-color:#147e71}.grant-row strong,.grant-row small{display:block}.grant-row small{color:#637c8b;margin-top:6px}.grant-row button{color:#a54940;white-space:nowrap}.connected{max-width:760px}.status-dot{display:block;width:14px;height:14px;border-radius:50%;background:#13aa7f;box-shadow:0 0 0 7px #13aa7f18;margin:5px 0 25px}.connected .button{margin-top:24px}#message{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);width:min(560px,90%);padding:16px 22px;border-radius:16px;background:#143d53;color:white;box-shadow:0 12px 40px #183b5033;z-index:10}#message.error{background:#923e3d}#invitation-result{margin-top:20px;border-top:1px solid #d8e3eb;padding-top:15px}#activation-url{font-size:13px}footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 5%;font-size:14px;color:#647c8e}footer img{height:22px;width:auto}body[data-module=pickup] .primary{background:#176d57}body[data-module=classlog] .primary{background:#2366bf}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-thumb{background:linear-gradient(#16b6a5,#217bde,#f5be35,#f4806b);border-radius:8px}::-webkit-scrollbar-track{background:transparent}@media(max-width:760px){header{padding:18px 5%}.brand img{height:30px}header nav{gap:12px}header nav span{display:none}header>a:last-child{font-size:14px}main{margin:26px auto}.login-layout{grid-template-columns:1fr;gap:22px;min-height:0}.hero{padding:4px 10px}.hero h1,.hero>p,.hero>.eyebrow,.hero>.module-grid{display:none}.login-panel{padding:28px}.management-grid{grid-template-columns:1fr}.panel{padding:24px}footer{font-size:12px}.grant-row{align-items:flex-start}.grant-row button{font-size:13px;min-width:70px;padding:9px}.access-grid{margin-top:24px}.activation{margin:0 auto}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

@media(max-width:520px){header{flex-wrap:wrap;gap:12px}header nav{flex-basis:100%;justify-content:space-between}}

.transfer { display: grid; place-items: center; }
.transfer .panel { width: min(100%, 26rem); text-align: center; }

body[data-page] button:disabled:not(.busy):not([aria-busy="true"]) { cursor: default; }
body[data-page] button.busy { position: relative; }
body[data-page] button.busy::after {
    content: "";
    position: absolute;
    inset-block-start: 4px;
    inset-inline-end: 4px;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    body[data-page] button.busy::after { animation: none; }
}
