:root {
	--blue: #2875d7;
	--navy: #183153;
	--muted: #64748b;
	--line: #dce5f0;
}

* { box-sizing: border-box; }
body { margin: 0; color: #18365f; font-family: "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.login-layout { display: grid; min-height: 100vh; grid-template-columns: 52% 48%; }

.welcome-panel { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 64px clamp(38px, 6vw, 82px) 36px; background: linear-gradient(180deg, #dfeeff 0%, #dfeeff 75%, #1c4779 75%, #173c69 100%); }
.welcome-panel::before { position: absolute; top: -115px; left: -88px; width: 218px; height: 218px; border-radius: 50%; background: rgba(75, 143, 220, .36); content: ""; }
.welcome-panel::after { position: absolute; right: -175px; bottom: 73px; width: 470px; height: 470px; border: 1px solid rgba(255, 255, 255, .42); border-radius: 50%; content: ""; }
.welcome-wash { position: absolute; pointer-events: none; }
.wash-one { inset: 0; background: radial-gradient(ellipse at 35% 30%, rgba(255,255,255,.36), transparent 50%), linear-gradient(150deg, rgba(231,243,255,.5), transparent 60%); }
.wash-two { right: 9%; bottom: 26%; width: 180px; height: 180px; border: 1px solid rgba(39, 105, 174, .09); border-radius: 50%; }
.welcome-content { position: relative; z-index: 1; display: flex; min-height: calc(100vh - 100px); flex-direction: column; }
.school-brand { display: flex; align-items: center; gap: 24px; width: fit-content; }
.brand-calendar { display: grid; width: 112px; height: 112px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid rgba(220,229,240,.8); border-radius: 18px; background: #fff; box-shadow: 0 7px 18px rgba(24,49,83,.08); }
.school-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.school-brand strong { display: block; color: #193d70; font-size: clamp(23px, 2.7vw, 34px); font-weight: 750; letter-spacing: -.035em; line-height: 1.08; }
.school-brand small { display: block; margin-top: 9px; color: #344f73; font-size: 16px; }
.school-illustration { position: relative; display: flex; width: calc(100% + clamp(38px, 6vw, 82px) + 20px); max-width: 680px; flex: 1 1 auto; align-items: flex-start; margin: 0 -20px 0 calc(-1 * clamp(38px, 6vw, 82px)); padding-top: 18px; }
.school-illustration svg { display: block; width: 100%; max-height: 450px; filter: drop-shadow(0 13px 17px rgba(35, 63, 91, .08)); }
.benefit-row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr 1.2fr; margin: 0 -14px; padding-top: 15px; color: #fff; }
.benefit { display: flex; min-height: 54px; align-items: center; gap: 12px; padding: 0 14px; }
.benefit + .benefit { border-left: 1px solid rgba(255, 255, 255, .28); }
.benefit-icon { display: grid; width: 26px; height: 30px; flex: 0 0 auto; place-items: center; color: #1e4d83; border-radius: 8px; background: #d8e8fc; font-size: 19px; font-weight: 800; }
.benefit-icon.bolt { color: #d5e6fc; background: transparent; font-size: 32px; }
.benefit-icon.qr-mini { color: #dceaff; background: transparent; font-size: 30px; }
.benefit strong, .benefit small { display: block; white-space: nowrap; }
.benefit strong { font-size: 12px; font-weight: 650; }
.benefit small { margin-top: 4px; color: #d6e4f6; font-size: 10px; }

.form-panel { display: grid; min-height: 100vh; place-items: center; padding: 48px clamp(24px, 5vw, 60px); background: linear-gradient(140deg, #f4f8fd 0%, #edf3fb 100%); }
.login-card { width: min(100%, 478px); padding: 29px 30px 23px; border: 1px solid rgba(219, 229, 241, .78); border-radius: 14px; background: rgba(255, 255, 255, .91); box-shadow: 0 15px 50px rgba(44, 74, 111, .08); text-align: center; }
.graduation-icon { display: grid; width: 68px; height: 68px; margin: 0 auto 9px; place-items: center; color: var(--blue); }
.graduation-icon svg { width: 68px; height: 68px; }
.login-card h1 { margin: 0; color: #163965; font-size: 28px; font-weight: 750; letter-spacing: -.035em; }
.login-intro { margin: 8px 0 27px; color: #7084a2; font-size: 14px; line-height: 1.65; }
.login-form { display: grid; gap: 16px; text-align: left; }
.input-box { display: flex; min-height: 66px; align-items: center; gap: 15px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.input-box:focus-within { border-color: #6ca1e0; box-shadow: 0 0 0 3px rgba(58, 127, 213, .1); }
.field-icon { width: 25px; height: 25px; flex: 0 0 auto; color: #91a5bf; }
.input-content { display: grid; min-width: 0; flex: 1; gap: 5px; }
.input-content > span { color: #607694; font-size: 11px; font-weight: 600; }
.input-content input { width: 100%; min-width: 0; padding: 0; color: #263e5e; border: 0; outline: 0; background: transparent; font-size: 13px; }
.input-content input::placeholder { color: #a1b2c9; opacity: 1; }
.password-toggle { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; color: #91a5bf; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.password-toggle:hover { color: #367bc9; background: #f1f6fd; }
.password-toggle svg { width: 20px; height: 20px; }
.login-button { display: flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; margin-top: 7px; color: #fff; border: 0; border-radius: 8px; background: #2875d7; box-shadow: 0 5px 13px rgba(40,117,215,.18); font-size: 15px; font-weight: 650; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.login-button:hover { transform: translateY(-1px); background: #1f64bd; }
.login-button svg { width: 23px; height: 23px; }
.form-message { display: none; margin: -4px 0 0; padding: 10px 12px; color: #80511b; border: 1px solid #f0ddb7; border-radius: 7px; background: #fff8e8; font-size: 12px; line-height: 1.5; }
.form-message.is-visible { display: block; }
.or-divider { display: flex; align-items: center; gap: 16px; margin: 17px 0 13px; color: #7185a2; }
.or-divider span { height: 1px; flex: 1; background: #e7edf5; }
.or-divider small { font-size: 12px; }
.qr-button { display: flex; width: 100%; min-height: 49px; align-items: center; justify-content: center; gap: 11px; padding: 0 12px; color: #183153; border: 1px solid #dce5f0; border-radius: 8px; background: #eaf2ff; font-size: 12px; font-weight: 650; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.qr-button { text-decoration: none; }
.qr-button:hover { border-color: #a9c9f0; background: #deebff; }
.qr-button svg { width: 22px; height: 22px; }
.card-school-name { margin: 19px 0 0; color: #9aabc0; font-size: 8px; font-weight: 700; letter-spacing: .13em; }

:focus-visible { outline: 3px solid rgba(40,117,215,.45); outline-offset: 3px; }
@media (max-width: 900px) {
	.login-layout { grid-template-columns: 48% 52%; }
	.welcome-panel { padding-inline: 28px; }
	.brand-calendar { width: 82px; height: 82px; }
	.school-brand { gap: 15px; }
	.school-brand strong { font-size: 25px; }
	.school-brand small { font-size: 13px; }
	.school-illustration { width: calc(100% + 48px); margin-left: -28px; }
	.benefit-row { margin-inline: -12px; }
	.benefit { gap: 7px; padding-inline: 9px; }
	.benefit small { font-size: 9px; }
	.form-panel { padding-inline: 25px; }
	.login-card { padding-inline: 24px; }
}
@media (max-width: 680px) {
	.login-layout { grid-template-columns: 1fr; }
	.welcome-panel { min-height: auto; padding: 31px 25px 18px; background: #dfeeff; }
	.welcome-panel::after { right: -230px; bottom: -295px; width: 430px; height: 430px; }
	.welcome-content { min-height: 0; }
	.school-brand { gap: 14px; }
	.brand-calendar { width: 63px; height: 63px; }
	.school-brand strong { font-size: clamp(21px, 6vw, 27px); }
	.school-brand small { margin-top: 5px; font-size: 12px; }
	.school-illustration { width: calc(100% + 50px); max-height: 300px; align-items: center; margin: 0 -25px; padding-top: 0; }
	.school-illustration svg { max-height: 300px; }
	.benefit-row { margin: 0 -14px; padding-top: 10px; }
	.benefit { color: #234a78; }
	.benefit { min-height: 47px; gap: 6px; padding-inline: 8px; }
	.benefit + .benefit { border-color: rgba(35, 74, 120, .2); }
	.benefit small { color: #55749b; }
	.benefit-icon.bolt, .benefit-icon.qr-mini { color: #376ba4; }
	.benefit-icon { width: 20px; font-size: 16px; }
	.benefit-icon.bolt, .benefit-icon.qr-mini { font-size: 23px; }
	.benefit strong { font-size: 10px; }
	.benefit small { white-space: normal; font-size: 8px; }
	.form-panel { min-height: auto; padding: 28px 19px 35px; }
	.login-card { width: min(100%, 450px); padding: 24px 21px 20px; }
	.graduation-icon, .graduation-icon svg { width: 57px; height: 57px; }
	.login-card h1 { font-size: 25px; }
	.login-intro { margin-bottom: 22px; font-size: 13px; }
}
@media (max-width: 360px) {
	.welcome-panel { padding-inline: 18px; }
	.school-illustration { width: calc(100% + 36px); margin-inline: -18px; }
	.benefit-row { margin-inline: -11px; }
	.benefit { padding-inline: 5px; }
	.form-panel { padding-inline: 13px; }
	.login-card { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
