.login-page { min-height: 100vh; color: white; background: radial-gradient(circle at 10% 10%, #0b3776, transparent 34rem), #020b1c; }
.login-screen { min-height: 100vh; padding: 78px max(24px,6vw); display: grid; place-items: center; }
.login-home { position: fixed; z-index: 3; top: 24px; left: max(24px,6vw); color: #b8c9e1; font-size: .8rem; font-weight: 750; }
.standalone-login { width: min(1080px,100%); min-height: 650px; display: grid; grid-template-columns: 1.12fr .88fr; overflow: hidden; border: 1px solid rgba(126,169,226,.34); border-radius: 26px; background: white; box-shadow: 0 45px 110px rgba(0,0,0,.38); }
.standalone-login-art { position: relative; min-height: 650px; overflow: hidden; }
.standalone-login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(3,20,52,.35), rgba(2,12,32,.9)); }
.standalone-login-art .login-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-art-copy { position: absolute; z-index: 2; left: 48px; right: 48px; bottom: 48px; }
.login-art-copy img { width: 76px; height: 76px; margin-bottom: 28px; border: 5px solid white; border-radius: 50%; object-fit: cover; }
.login-art-copy span,
.standalone-login-form > span { color: #50a0ff; font-size: .67rem; font-weight: 850; letter-spacing: .15em; }
.login-art-copy h1 { max-width: 520px; margin: 10px 0 14px; font: 800 clamp(2.5rem,4vw,4.3rem)/.96 var(--font-display); letter-spacing: -.055em; }
.login-art-copy p { max-width: 500px; margin: 0; color: #c1d2e9; }
.standalone-login-form { padding: 54px 48px; display: flex; flex-direction: column; justify-content: center; color: #0a2142; }
.standalone-login-form .mini-brand { margin-bottom: 45px; display: flex; align-items: center; gap: 10px; }
.standalone-login-form h2 { margin: 9px 0 7px; font: 800 2.35rem/1.04 var(--font-display); letter-spacing: -.045em; }
.standalone-login-form > p { margin: 0 0 28px; color: #6a7e98; }
.standalone-login-form form { display: grid; gap: 16px; }
.standalone-login-form form > label { display: grid; gap: 6px; color: #526984; font-size: .73rem; font-weight: 750; }
.standalone-login-form input { width: 100%; padding: 12px 13px; border: 1px solid #c7d6e8; border-radius: 9px; outline: 0; color: #0a2142; background: #f8fbff; }
.standalone-login-form input:focus { border-color: #1479ed; box-shadow: 0 0 0 3px rgba(20,121,237,.13); }
.standalone-login-form .password { position: relative; }
.standalone-login-form .password button { position: absolute; right: 7px; top: 6px; padding: 7px 8px; border: 0; color: #1266ca; background: transparent; font-size: .7rem; font-weight: 750; }
.standalone-login-form .login-links { color: #617693; font-size: .7rem; }
.standalone-login-form .login-links label { display: flex; align-items: center; gap: 6px; }
.standalone-login-form .login-links input { width: auto; }
.standalone-login-form .form-message { min-height: 20px; margin: -3px 0; color: #b52d38; font-size: .72rem; }
.standalone-login-form .login-submit { min-height: 49px; }
.standalone-login-form > small { margin-top: 22px; color: #8292a7; font-size: .67rem; }

.school-page { min-height: 100vh; color: #eaf3ff; background: #06152f; }
.school-topbar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 78px; padding: 10px 24px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid rgba(116,158,215,.22); background: rgba(3,15,36,.94); backdrop-filter: blur(18px); }
.school-topbar .brand { min-width: 260px; }
.school-topbar .brand img { width: 46px; height: 46px; padding: 6px; flex: 0 0 46px; border-radius: 50%; object-fit: contain !important; object-position: center; background: #fff; box-shadow: 0 0 0 2px #d9e7f5, 0 5px 16px rgba(13,86,189,.2); }
.school-search { width: min(440px,40vw); margin-left: auto; padding: 0 13px; display: flex; align-items: center; gap: 9px; border: 1px solid #29466d; border-radius: 10px; color: #7691b6; background: #071d41; }
.school-search input { width: 100%; height: 42px; border: 0; outline: 0; color: white; background: transparent; font-size: .78rem; }
.school-topbar .school-theme-toggle { width: 44px; height: 44px; flex: 0 0 44px; border-color: #29466d; border-radius: 10px; color: #eaf3ff; background: #071d41; box-shadow: none; }
.school-topbar .login-button { height: 48px; border-radius: 11px; }
.school-shell { min-height: calc(100vh - 78px); padding-top: 78px; display: grid; grid-template-columns: 230px minmax(0,1fr); }
.school-page.uses-shared-header .school-shell { min-height: calc(100vh - var(--public-header-primary-height) - var(--public-header-secondary-height) - 1px); padding-top: calc(var(--public-header-primary-height) + var(--public-header-secondary-height) + 1px); }
.school-sidebar { position: sticky; top: 78px; height: calc(100vh - 78px); padding: 24px 14px; display: flex; flex-direction: column; gap: 7px; border-right: 1px solid rgba(116,158,215,.18); background: #040f24; }
.school-page.uses-shared-header .school-sidebar { top: calc(var(--public-header-primary-height) + var(--public-header-secondary-height) + 1px); height: calc(100vh - var(--public-header-primary-height) - var(--public-header-secondary-height) - 1px); }
.school-sidebar a { padding: 11px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 8px; color: #8fa6c6; font-size: .75rem; font-weight: 720; }
.school-sidebar a:hover,
.school-sidebar a.active { border-color: #1769c6; color: white; background: linear-gradient(90deg,#0e6fd8,#0a4d9b); }
html[data-embedded="true"] .preview-navigation-disabled { cursor: not-allowed !important; }
html[data-embedded="true"] .report-linked-field { position: relative; outline: 2px dashed rgba(66,169,255,.72); outline-offset: -4px; cursor: pointer; transition: outline-color .2s, filter .2s; }
html[data-embedded="true"] .report-linked-field:hover { outline-color: #54dc8c; filter: brightness(1.06); }
html[data-embedded="true"] .report-linked-field::before { content: "Editar no formulário →"; box-sizing: border-box; width: 100%; margin: 0 0 8px; padding: 5px 8px; display: block; border: 1px dashed #54dc8c; border-radius: 6px; color: #eafff2; background: rgba(3,20,43,.88); font-size: .55rem; font-weight: 800; line-height: 1.2; text-align: right; letter-spacing: .04em; pointer-events: none; }
html[data-embedded="true"] .report-linked-field:focus-visible { outline-color: #54dc8c; box-shadow: 0 0 0 4px rgba(84,220,140,.2); }
html[data-embedded="true"][data-preview-mode="editable"] .school-profile-image.report-linked-field { display: flex; flex-direction: column; }
html[data-embedded="true"][data-preview-mode="editable"] .school-profile-image.report-linked-field img { min-height: 0; flex: 1; }
html[data-embedded="true"][data-preview-mode="editable"] .profile-tags.report-linked-field::before { flex: 0 0 100%; }
html[data-embedded="true"][data-preview-mode="editable"] .profile-stat-grid .report-linked-field::before,
html[data-embedded="true"][data-preview-mode="editable"] #profile-tab-content .report-linked-field::before { grid-column: 1 / -1; }
html[data-embedded="true"][data-preview-mode="static"] .report-linked-field { outline: 0 !important; cursor: default; filter: none; }
html[data-embedded="true"][data-preview-mode="static"] .report-linked-field::before { display: none; }
.school-profile { min-width: 0; padding: 32px var(--module-padding-inline) 56px; background: radial-gradient(circle at 92% 5%,rgba(25,113,230,.2),transparent 30rem),#071936; }
.school-breadcrumb { margin-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #7190b8; font-size: .7rem; }
.school-breadcrumb b { color: #b8cae1; }
.school-hero-profile { min-height: 250px; display: grid; grid-template-columns: minmax(280px,.72fr) 1.28fr; overflow: hidden; border: 1px solid #29476f; border-radius: 20px; background: linear-gradient(135deg,rgba(13,42,83,.95),rgba(4,17,42,.98)); box-shadow: 0 30px 75px rgba(0,0,0,.27); }
.school-profile-image { min-height: 250px; overflow: hidden; background: #dbe7f6; }
.school-profile-image img { width: 100%; height: 100%; object-fit: cover; }
.school-profile-copy { padding: clamp(20px,2.5vw,35px); display: flex; flex-direction: column; justify-content: center; }
.school-profile-copy > span,
.school-story article > span,
.school-gallery-section > div:first-child > span { color: #54dc8c; font-size: .67rem; font-weight: 850; letter-spacing: .13em; }
.school-profile-copy h1 { margin: 6px 0 2px; font: 800 var(--internal-hero-title-size)/1.02 var(--font-display); letter-spacing: -.045em; }
.profile-place { margin: 0 0 10px !important; color: #75a9e9 !important; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.school-profile-copy > p { max-width: 800px; margin: 0; color: #b8c9df; font-size: var(--internal-hero-description-size); line-height: 1.5; }
.profile-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.profile-tags span { padding: 6px 9px; border: 1px solid #32557e; border-radius: 6px; color: #94b1d5; font-size: .64rem; }
.profile-stat-grid { margin: 18px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; overflow: hidden; border: 1px solid #244268; border-radius: 13px; background: #244268; }
.profile-stat-grid article { min-height: 96px; padding: 20px; display: grid; place-content: center; text-align: center; background: #0a2147; }
.profile-stat-grid b { color: white; font: 800 1.8rem var(--font-display); }
.profile-stat-grid span { color: #8fa8c9; font-size: .68rem; }
.profile-tabs { margin-top: 18px; padding: 18px; border: 1px solid #244268; border-radius: 15px; background: rgba(4,18,43,.75); }
.profile-tab-list { padding: 6px; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; border-radius: 10px; background: #cfe8ff; }
.profile-tab-list button { padding: 10px; display: flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 7px; color: #15375e; background: transparent; font-size: .7rem; font-weight: 800; }
.profile-tab-list button.active { color: white; background: #078f86; box-shadow: 0 8px 20px rgba(0,143,134,.25); }
#profile-tab-content { margin-top: 14px; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
#profile-tab-content article { padding: 18px 18px 18px 22px; border: 1px solid #243c60; border-left: 5px solid var(--item-color); border-radius: 9px; background: #0a1e40; }
#profile-tab-content small { color: #6e91bd; font-size: .6rem; text-transform: uppercase; }
#profile-tab-content h3 { margin: 4px 0; font: 750 1rem var(--font-display); }
#profile-tab-content p { margin: 0; color: #94a9c5; font-size: .74rem; }
.school-story { margin-top: 28px; display: grid; gap: 18px; }
.school-story article { padding: 28px; border: 1px solid #26466f; border-radius: 16px; background: linear-gradient(145deg,rgba(11,37,78,.86),rgba(5,19,46,.9)); }
.school-story h2 { max-width: 900px; margin: 9px 0; font: 800 clamp(1.6rem,3vw,2.5rem)/1.1 var(--font-display); letter-spacing: -.035em; }
.school-story p { max-width: 950px; white-space: pre-line; color: #9eb4d0; }
.school-gallery-section { margin-top: 34px; }
.school-gallery-section h2 { margin: 8px 0 22px; font: 800 2.3rem var(--font-display); }
.school-page-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.school-page-gallery button { height: 190px; padding: 0; overflow: hidden; border: 1px solid #34547a; border-radius: 13px; background: #0a2147; }
.school-page-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.school-page-gallery button:hover img { transform: scale(1.035); }
.school-page-footer { min-height: 82px; padding: 20px 30px 20px 260px; display: flex; justify-content: space-between; align-items: center; gap: 25px; color: #839abb; background: #020b1c; font-size: .72rem; }
.school-page-footer a { color: #dbe9fb; font-weight: 750; }

html[data-theme="light"] body.school-page { color: #132e4d; background: #fbfaf7; }
html[data-theme="light"] .school-topbar { border-color: #d5e0eb; background: rgba(255,254,251,.96); }
html[data-theme="light"] .school-search { border-color: #c8d7e6; color: #7188a0; background: #f4f7fa; }
html[data-theme="light"] .school-search input { color: #17304e; }
html[data-theme="light"] .school-topbar .school-theme-toggle { color: #17304e; border-color: #c8d7e6; background: #f4f7fa; }
html[data-theme="light"] .school-sidebar { border-color: #d4dfe8; background: #f0f3f6; }
html[data-theme="light"] .school-sidebar a { color: #58718b; }
html[data-theme="light"] .school-sidebar a:hover,
html[data-theme="light"] .school-sidebar a.active { color: #fff; }
html[data-theme="light"] .school-profile { background: radial-gradient(circle at 92% 5%,rgba(31,120,225,.09),transparent 30rem),#fbfaf7; }
html[data-theme="light"] .school-breadcrumb { color: #6d839a; }
html[data-theme="light"] .school-breadcrumb b { color: #294966; }
html[data-theme="light"] .school-hero-profile { border-color: #cddbe8; background: linear-gradient(135deg,#fffefa,#f3f7fa); box-shadow: 0 24px 65px rgba(27,62,96,.11); }
html[data-theme="light"] .school-profile-copy > p { color: #58708a; }
html[data-theme="light"] .profile-place { color: #176fca !important; }
html[data-theme="light"] .profile-tags span { color: #4f6c88; border-color: #cbd9e5; background: #f7fafc; }
html[data-theme="light"] .profile-stat-grid { border-color: #d8e2eb; background: #d8e2eb; }
html[data-theme="light"] .profile-stat-grid article { background: #fffefa; }
html[data-theme="light"] .profile-stat-grid b { color: #173c61; }
html[data-theme="light"] .profile-stat-grid span { color: #667f98; }
html[data-theme="light"] .profile-tabs { border-color: #d2dee8; background: #fffdfa; }
html[data-theme="light"] #profile-tab-content article { border-color: #d3dfe9; background: #fff; }
html[data-theme="light"] #profile-tab-content h3 { color: #244663; }
html[data-theme="light"] #profile-tab-content p { color: #617990; }
html[data-theme="light"] .school-story article { border-color: #d0dce7; background: linear-gradient(145deg,#fffefa,#f6f8fa); }
html[data-theme="light"] .school-story h2,
html[data-theme="light"] .school-gallery-section h2 { color: #183b5e; }
html[data-theme="light"] .school-story p { color: #60788e; }
html[data-theme="light"] .school-page-gallery button { border-color: #ccd9e4; background: #fff; }
html[data-theme="light"] .school-page-footer { color: #637b92; background: #edf1f4; }
html[data-theme="light"] .school-page-footer a { color: #155fae; }

/* Padrão de contraste: texto escuro em superfícies claras e branco em superfícies escuras. */
.login-art-copy p,
.login-home,
.school-sidebar a,
.school-breadcrumb,
.school-breadcrumb b,
.school-profile-copy > p,
.profile-tags span,
.profile-stat-grid span,
#profile-tab-content small,
#profile-tab-content p,
.school-story p,
.school-page-footer { color: #fff; }
.standalone-login-form > p,
.standalone-login-form form > label,
.standalone-login-form .login-links,
.standalone-login-form > small { color: #101820; }
html[data-theme="light"] .school-sidebar a,
html[data-theme="light"] .school-breadcrumb,
html[data-theme="light"] .school-breadcrumb b,
html[data-theme="light"] .school-profile-copy > p,
html[data-theme="light"] .profile-tags span,
html[data-theme="light"] .profile-stat-grid span,
html[data-theme="light"] #profile-tab-content small,
html[data-theme="light"] #profile-tab-content p,
html[data-theme="light"] .school-story p,
html[data-theme="light"] .school-page-footer { color: #101820; }
html[data-theme="light"] .school-sidebar a.active { color: #fff; }

@media (max-width: 900px) {
  .standalone-login { grid-template-columns: 1fr; }
  .standalone-login-art { min-height: 360px; }
  .login-art-copy { left: 30px; right: 30px; bottom: 30px; }
  .login-art-copy img { width: 58px; height: 58px; margin-bottom: 16px; }
  .school-topbar .brand { min-width: auto; }
  .school-topbar .brand span { display: none; }
  .school-shell { grid-template-columns: 74px minmax(0,1fr); }
  .school-sidebar a { justify-content: center; }
  .school-sidebar span { display: none; }
  .school-hero-profile { grid-template-columns: 1fr; }
  .school-profile-image { min-height: 225px; max-height: 322px; }
  .school-page-footer { padding-left: 100px; }
}

@media (max-width: 620px) {
  .login-screen { padding: 68px 12px 20px; }
  .standalone-login { border-radius: 18px; }
  .standalone-login-art { min-height: 320px; }
  .standalone-login-form { padding: 38px 24px; }
  .standalone-login-form .mini-brand { margin-bottom: 30px; }
  .school-topbar { padding-inline: 12px; gap: 8px; }
  .school-search { width: auto; min-width: 0; flex: 1; }
  .school-topbar .school-theme-toggle { width: 40px; height: 40px; flex-basis: 40px; }
  .school-topbar .login-button { min-width: 65px; padding: 0 10px; }
  .school-shell { display: block; }
  .school-sidebar { position: fixed; z-index: 20; top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 66px; padding: 7px; flex-direction: row; justify-content: space-around; border: 0; border-top: 1px solid #28466c; }
  .school-page.uses-shared-header .school-sidebar { top: auto; height: 66px; }
  .school-sidebar a { flex: 1; padding: 10px; }
  .school-profile { padding: 25px 14px 100px; }
  .school-profile-copy { padding: 28px 22px; }
  .profile-stat-grid { grid-template-columns: 1fr; }
  .profile-tab-list { grid-template-columns: 1fr; }
  #profile-tab-content { grid-template-columns: 1fr; }
  .school-page-gallery { grid-template-columns: 1fr; }
  .school-page-footer { padding: 20px 16px 85px; align-items: start; flex-direction: column; }
  html[data-embedded="true"] .report-linked-field::before { text-align: left; }
}
