/* Aiedu School · a warm, growing place to learn. */
:root {
    --school-ink: #213e33;
    --school-green: #245343;
    --school-muted: #65766c;
    --school-paper: #f6f5ed;
    --school-line: #dfe5d9;
}
body { font-family: 'Noto Sans KR', sans-serif; background: var(--school-paper); color: var(--school-ink); }
body:has(.school-login.active) #app { max-width: 1440px; padding: 0 64px; }
.school-login { min-height: 100svh; }
.school-login.active { display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 28px; }
.school-login-header { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.school-login-brand { display: inline-flex; align-items: center; }
.school-login-brand img { display: block; width: 210px; height: auto; }
.school-login-stage { display: flex; justify-content: center; align-items: center; width: 100%; flex-shrink: 0; }
.school-login-card { width: min(100%, 440px); min-width: 0; background: #fffef9; border: 1px solid #e4e6db; border-radius: 24px; padding: 32px; box-shadow: 0 16px 50px #31492c09, 0 4px 10px #31492c03; position: relative; }
.school-role-tabs { display: grid; grid-template-columns: repeat(3,1fr); padding: 5px; gap: 4px; background: #eef1e7; border-radius: 13px; }
.school-role-tabs .login-tab { display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 9px; color: #6a7865; font-size: 12px; font-weight: 600; padding: 12px 3px; transition: background-color .2s,color .2s,box-shadow .2s; }
.school-role-tabs .login-tab.active { color: #245343; background: #fffefb; box-shadow: 0 2px 8px #294f3310; }
.school-role-tabs .login-tab i { font-size: 12px; }
.school-login-panel { padding-top: 26px; }
.school-login-panel label { display: block; font-size: 12px; font-weight: 700; color: #435946; margin-bottom: 10px; }
.school-login-panel .form-input { width: 100%; min-height: 52px; border: 1px solid #dce2d5; background: #fff; border-radius: 11px; padding: 13px 15px; font-size: 13px; color: #213e33; transition: border-color .2s,box-shadow .2s; }
.school-login-panel .form-input::placeholder { color: #909b8e; font-size: 13px; }
.school-login-panel .form-input:focus { border-color: #5c9270; box-shadow: 0 0 0 3px #5c927016; outline: none; }
.school-input-hint { display: flex; gap: 6px; align-items: center; font-size: 10px; color: #85907e; margin-top: 10px; line-height: 1.7; }
.school-input-hint i { font-size: 10px; }
.school-login-panel .school-signin-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 13px 18px; margin-top: 24px; background: #245343; border-radius: 11px; color: #fff; font-size: 13px; font-weight: 700; border: 1px solid #245343; transition: background-color .2s,transform .2s; }
.school-login-panel .school-signin-button:hover { background: #173f30; transform: translateY(-1px); }
.school-password-label { margin-top: 18px; }
.school-password-field { position: relative; }
.school-password-field input { padding-right: 48px !important; }
#school-password-toggle { position: absolute; right: 5px; top: 5px; width: 42px; height: 42px; border-radius: 8px; color: #6f7c6c; }
#school-password-toggle:hover { background: #f3f5ee; }
.school-login-divider { display: flex; align-items: center; gap: 12px; color: #929a8e; font-size: 10px; margin: 16px 0; }
.school-login-divider::before,.school-login-divider::after { content:''; flex: 1; height: 1px; background: #e5e9df; }
.school-login-panel .school-google-button { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #dce2d5; border-radius: 11px; background: #fff; min-height: 48px; width: 100%; font-size: 12px; font-weight: 600; color: #455d4c; }
.school-google-button:hover { background: #f4f6ef; }
.school-google-button i { color: #4167a5; }
.school-register-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 8px; padding-top: 23px; margin-top: 24px; border-top: 1px solid #e8ebdf; font-size: 11px; }
.school-register-links > span { color: #8b9384; width: 100%; margin-bottom: 2px; }
.school-register-links button { color: #526e56; font-weight: 600; padding: 4px 0; }
.school-register-links button:hover { text-decoration: underline; }
.school-register-links button > span { margin-left: 3px; font-size: 13px; }
.school-skip-link { position: fixed; z-index: 300; top: -100px; left: 20px; background: #245343; color: white; padding: 12px 20px; border-radius: 10px; }
.school-skip-link:focus { top: 12px; }
.school-login :is(button,a):focus-visible { outline: 3px solid #6a9b72; outline-offset: 4px; }
#loading-overlay { background: #f6f5edfa; gap: 14px; }
#loading-overlay .loading-spinner { border-width: 3px; border-color: #e0e6d9; border-top-color: #477759; width: 24px; height: 24px; }
#loading-overlay p { font-size: 13px; color: #65765e; margin-top: 0; }
#student-register-view.active,#teacher-register-view.active { padding: 60px 0; }
:is(#student-register-view,#teacher-register-view) > div { border: 1px solid #dfe5d9; border-radius: 26px; box-shadow: 0 15px 50px #31492c09; padding: 36px; }
:is(#student-register-view,#teacher-register-view) > div::before { content: ''; display: block; width: 64px; height: 64px; margin: 0 auto 20px; background: url('./assets/school/school-mark.svg') center / contain no-repeat; }
:is(#student-register-view,#teacher-register-view) h2 { font-size: 21px; color: #245343; }
:is(#student-register-view,#teacher-register-view) .form-input { border-radius: 10px; min-height: 50px; padding: 12px; border-color: #dce2d5; font-size: 14px; }
:is(#student-register-view,#teacher-register-view) .form-input:focus { border-color: #5c9270; box-shadow: 0 0 0 3px #5c927016; outline: 0; }
:is(#student-register-view,#teacher-register-view) .btn-primary { background: #245343; border-radius: 11px; min-height: 50px; font-weight: 600; }
:is(#student-register-view,#teacher-register-view) .btn-primary:hover { background: #173f30; }
@media (max-width: 680px) { .school-login.active { gap: 24px; } .school-login-brand img { width: 180px; } .school-login-card { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { .school-login *, .school-login *::before,.school-login *::after { transition: none !important; animation: none !important; } .school-login-panel .school-signin-button:hover { transform: none; } #loading-overlay .loading-spinner { animation: none; } }

/* Readable controls for students and families, including smaller screens. */
.school-role-tabs .login-tab { font-size: 14px; }
.school-login-panel label { font-size: 14px; }
.school-login-panel .form-input { font-size: 15px; }
.school-login-panel .school-signin-button { font-size: 15px; }
.school-input-hint { font-size: 12px; color: #65735e; }
.school-register-links { font-size: 13px; }
.school-register-links > span { color: #718069; }
.school-login-panel .school-google-button { font-size: 14px; }
.school-login :is(.school-register-links > span,.school-input-hint,.school-login-divider) { color: #65735e; }
.school-role-tabs .login-tab:not(.active) { color: #60705d; }
.school-login-panel .form-input::placeholder { color: #687561; }
@media (max-width: 680px) {
    .school-login-panel .form-input { font-size: 16px; }
}
