.info-entry, .info-entry * { box-sizing: border-box; }
body.info-entry {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    background: #f5f7fa; color: #1d3147;
    font: 1rem/1.6 "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
}
.entry-container { width: min(100%, 1240px); margin-inline: auto; padding-inline: clamp(16px, 3vw, 36px); }
.entry-header, .entry-footer { background: #fff; border-block-end: 1px solid #dce5ef; }
.header-row, .brand, .header-links, .back { display: flex; align-items: center; }
.header-row { justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { gap: 12px; text-decoration: none; color: #163550; }
.brand-mark, .module-icon { display: grid; place-items: center; border-radius: 11px; }
.brand-mark {
    width: 44px; height: 44px; color: #fff; background: linear-gradient(145deg,#3188d4,#14589d);
    box-shadow: 0 4px 12px #1d63a429; font: 700 20px/1 system-ui, sans-serif;
}
.brand strong, .brand small, .module strong, .module small { display: block; }
.brand strong { line-height: 1.3; font-size: 1.125rem; }
.brand small, .entry-footer { color: #52667a; font-size: .875rem; }
.header-links { gap: 3px; padding: 3px; background: #f2f5f8; border-radius: 12px; }
.header-links a, .back { padding: 10px 14px; min-height: 44px; color: #425b71; text-decoration: none; font-size: .9375rem; font-weight: 600; }
.header-links a { border-radius: 9px; }
.header-links a:hover { background: #e6edf4; }
.header-links a[aria-current] { background: #17364f; color: #fff; }
.entry-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 18px; margin-block: 28px; }
.info-entry .hero-home { display: flex; padding: 0; }
.info-entry .hero-home .public-hero-copy {
    width: 100%; display: flex; flex-direction: column; justify-content: center;
    min-height: 360px; padding: clamp(24px,4vw,54px); position: relative; overflow: hidden;
    border-radius: 14px; color: #fff;
    background: radial-gradient(circle at 82% 18%,#4688ba45,transparent 30%),
                linear-gradient(112deg,#0f304f,#164d79 55%,#1766a6);
}
.info-entry .public-hero-copy::after { content: "BWIT Info"; pointer-events: none; }
.info-entry .public-hero-copy::before { pointer-events: none; }
.info-entry .public-hero-copy > * { position: relative; z-index: 1; }
.info-entry .hero-home .school-name { font-weight: 600; color: #d2e8f9; font-size: 1rem; margin: 0; }
.info-entry .hero-home h1 { margin: 14px 0; font-size: clamp(2.15rem,4.1vw,3.5rem); line-height: 1.25; letter-spacing: normal; }
.info-entry .hero-home em { color: #95d2ff; font-style: normal; }
.info-entry .hero-home p { max-width: 38ch; margin: 0; font-size: 1.0625rem; line-height: 1.7; color: #ebf3fa; }
.hero-action { margin-top: 24px; }
.primary { display: inline-flex; justify-content: center; align-items: center; gap: 15px; min-height: 48px; padding: 10px 20px; background: #155b9f; border: 0; border-radius: 9px; color: white; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.primary:hover { background: #104d86; }
.hero-home .primary { background: #fff; color: #194e79; }
.hero-home .primary:hover { background: #e6f3ff; }
.entry-panel, .login-card { background: #fff; border: 1px solid #dae3ed; border-radius: 14px; box-shadow: 0 10px 35px #19273a0e; }
.entry-panel { padding: clamp(18px,2.5vw,32px); }
.entry-panel h2 { margin: 0 0 10px; font-size: 1.375rem; }
.module-list { list-style: none; margin: 0; padding: 0; }
.module-list li { border-top: 1px solid #e3eaf1; }
.module { padding: 14px 3px; display: grid; align-items: center; grid-template-columns: 40px 1fr 12px; gap: 13px; color: #273e55; text-decoration: none; }
.module:hover { background: #f4f8fd; }
.module-icon { width: 40px; height: 40px; background: #e9f2ff; color: #155a9b; font: 700 19px/1 system-ui, sans-serif; }
.module-student .module-icon { background: #faf0d9; color: #865811; }
.module-teacher .module-icon { background: #f0ebf8; color: #725389; }
.module-school .module-icon { background: #e8f3ee; color: #347057; }
.module small { color: #51677a; font-size: .9375rem; line-height: 1.5; }
.arrow { color: #597089; font: 24px/1 system-ui,sans-serif; }
.entry-footer { margin-top: auto; border-block: 1px solid #e2e7ed; padding-block: 15px; }
.back:hover { text-decoration: underline; }
.login-main { padding: clamp(28px,7vh,72px) 16px; }
.login-card { margin-inline: auto; max-width: 460px; padding: clamp(24px,4vw,40px); border-top: 5px solid #2364a1; }
.login-school { margin: 0; font-size: .9375rem; font-weight: 600; color: #41627f; }
.login-card h1 { margin: 8px 0 2px; color: #163958; font-size: clamp(1.55rem,3vw,2rem); }
.login-hint { margin: 0 0 20px; color: #52687b; }
.next-work, .login-error { margin: 12px 0; background: #edf5fd; border-radius: 6px; padding: 8px 12px; color: #245983; }
.login-error { color: #8c2e2d; background: #fff0ee; }
.login-card label { display: block; margin: 15px 0 5px; font-weight: 600; }
.login-card input:not([type=hidden]) { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #aab9c7; border-radius: 8px; font: inherit; }
.login-card .primary { width: 100%; margin-top: 22px; }
.info-entry :focus-visible { outline: 3px solid #e59c28; outline-offset: 3px; }
@media (max-width: 760px) {
    .entry-grid { grid-template-columns: 1fr; margin-block: 16px 24px; gap: 14px; }
    .info-entry .hero-home .public-hero-copy { min-height: auto; }
}
@media (max-width: 540px) {
    .header-row { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
    .header-links { width: 100%; }
    .header-links a { text-align: center; flex: 1; padding-inline: 4px; }
    .module { gap: 10px; }
}
