.auth-page { min-height:100dvh; background:#f4f5f1; }
.auth-shell { display:grid; place-items:start center; min-height:calc(100dvh - 72px); padding:48px 18px; }
.auth-card { width:min(430px,100%); padding:34px; border:1px solid #d8dfd4; border-radius:14px; background:#fffdf8; box-shadow:0 18px 50px #3f503914; }
.auth-heading { margin-bottom:24px; }
.auth-eyebrow { margin:0 0 7px; color:#637c59; font-size:9px; font-weight:800; letter-spacing:.18em; }
.auth-heading h1 { margin:0 0 8px; font:800 28px/1.15 Manrope,sans-serif; letter-spacing:-.04em; }
.auth-heading p:last-child { margin:0; color:#70766d; font-size:12px; line-height:1.6; }
.auth-google,.auth-submit,.auth-secondary { display:flex; width:100%; min-height:44px; align-items:center; justify-content:center; gap:10px; border-radius:8px; font:700 12px Manrope,sans-serif; }
.auth-google { border:1px solid #cfd7ca; color:#3f5039; background:#fff; }
.auth-google:hover { border-color:#637c59; background:#f2f5f0; }
.auth-google span { display:grid; width:22px; height:22px; place-items:center; border:1px solid #d6dcd2; border-radius:50%; font-weight:800; }
.auth-divider { display:flex; align-items:center; gap:10px; margin:20px 0; color:#969b92; font-size:9px; font-weight:700; text-transform:uppercase; }
.auth-divider:before,.auth-divider:after { content:''; flex:1; height:1px; background:#e0e5dc; }
.auth-form { display:grid; gap:14px; }
.auth-form label { display:grid; gap:6px; color:#434a40; font-size:11px; font-weight:700; }
.auth-form input { width:100%; height:44px; padding:0 12px; border:1px solid #ccd5c7; border-radius:7px; color:#252824; background:#fff; font:500 13px Manrope,sans-serif; outline:0; }
.auth-form input:focus { border-color:#637c59; box-shadow:0 0 0 3px #637c5919; }
.password-input { position:relative; display:block; }
.password-input input { padding-right:76px!important; }
.password-toggle { position:absolute; top:50%; right:7px; grid-column:auto!important; width:auto!important; min-width:auto!important; margin:0!important; padding:4px 6px!important; border:0!important; color:#3f5039!important; background:transparent!important; transform:translateY(-50%); font:700 10px Manrope,sans-serif!important; cursor:pointer; }
.password-toggle:hover { color:#637c59!important; text-decoration:underline; }
.auth-submit { margin-top:4px; border:1px solid #637c59; color:#fff; background:#637c59; cursor:pointer; }
.auth-submit:hover { background:#3f5039; }
.auth-submit:disabled { opacity:.6; cursor:wait; }
.auth-status { margin:0; padding:9px 10px; border-radius:6px; color:#873f38; background:#f8e9e6; font-size:10px; line-height:1.5; }
.auth-status.is-success { color:#3f5039; background:#e8ede5; }
.auth-links { display:grid; gap:9px; margin-top:14px; color:#637c59; font-size:10px; font-weight:700; }
.auth-links a { display:flex; min-height:40px; align-items:center; justify-content:center; padding:9px 12px; border:1px solid #cfd7ca; border-radius:8px; background:#fff; text-align:center; }
.auth-links a:hover { border-color:#637c59; background:#f2f5f0; }
#forgot-link { min-height:auto; padding:4px 0; border:0; background:transparent; justify-content:flex-start; }
#forgot-link:hover { background:transparent; text-decoration:underline; }
[hidden] { display:none!important; }
.account-panel { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:13px; }
.account-avatar { display:grid; width:46px; height:46px; place-items:center; border-radius:50%; color:#fff; background:#637c59; font-weight:800; }
.account-panel strong,.account-panel span { display:block; }
.account-panel strong { font-size:14px; }
.account-panel span { margin-top:3px; color:#70766d; font-size:10px; }
.account-panel button { grid-column:1/-1; width:100%; margin-top:12px; padding:11px; border:1px solid #cfd7ca; border-radius:7px; color:#3f5039; background:#fff; cursor:pointer; font:700 11px Manrope,sans-serif; }
.account-password-panel { display:grid; grid-column:1/-1; gap:11px; margin-top:12px; padding:14px; border:1px solid #dce2d8; border-radius:8px; background:#f8faf6; }
.account-password-panel label { display:grid; gap:6px; color:#434a40; font-size:10px; font-weight:700; }
.account-password-panel .password-input { margin:0; color:inherit; font-size:inherit; }
.account-password-panel input { width:100%; height:40px; padding:0 10px; border:1px solid #ccd5c7; border-radius:7px; color:#252824; background:#fff; font:500 11px Manrope,sans-serif; outline:0; }
.account-password-panel input:focus { border-color:#637c59; box-shadow:0 0 0 3px #637c5919; }
.account-password-title { margin:0; color:#3f5039; font-size:11px; font-weight:800; }
.account-password-panel > p:not(.account-password-title) { margin:-6px 0 0; color:#70766d; font-size:9px; line-height:1.4; }
.account-password-panel .account-password-status { margin:0; padding:8px 10px; border-radius:6px; color:#873f38; background:#f8e9e6; font-size:9px; line-height:1.4; }
.account-password-panel .account-password-status.is-success { color:#3f5039; background:#e8ede5; }
.account-password-panel #account-password-save { margin:0; color:#fff; border-color:#637c59; background:#637c59; }
@media(max-width:600px){.auth-shell{min-height:calc(100dvh - 60px);padding-top:28px}.auth-card{padding:26px 22px}}

.teacher-account-panel{grid-column:1/-1;margin-top:12px;padding:14px;border:1px solid #dce2d8;border-radius:8px;background:#f8faf6}.teacher-account-panel .teacher-account-title{margin:0 0 4px;color:#3f5039;font-size:11px;font-weight:800}.teacher-account-panel>p:not(.teacher-account-title){margin:0 0 10px;color:#70766d;font-size:9px;line-height:1.4}.teacher-invite-row{display:grid;grid-template-columns:1fr auto;gap:6px}.teacher-invite-row input{min-width:0;height:36px;padding:0 8px;border:1px solid #cfd7ca;border-radius:6px;background:#fff;font-size:9px}.account-panel .teacher-invite-row button{grid-column:auto;width:auto;margin:0;padding:8px 10px;background:#637c59;color:#fff}.teacher-account-panel>small{display:block;margin-top:5px;color:#70766d;font-size:8px}.teacher-account-panel #teacher-students{margin-top:10px}.teacher-account-panel #teacher-students>strong{font-size:9px}.teacher-account-panel #teacher-students p{margin:6px 0 0;padding-top:6px;border-top:1px solid #e3e8df;font-size:9px}.teacher-account-panel #teacher-students p span{display:block;color:#70766d;font-size:8px}

.auth-terms{grid-template-columns:18px 1fr!important;align-items:start!important;gap:9px!important;margin-top:2px;color:#60685d!important;font-size:10px!important;font-weight:600!important;line-height:1.55}.auth-terms input{width:16px!important;height:16px!important;margin:1px 0 0;padding:0;accent-color:#637c59}.auth-terms a{color:#3f5039;font-weight:800;text-decoration:underline;text-underline-offset:2px}.auth-terms a:hover{color:#637c59}

.auth-terms-group{display:grid;gap:9px}.auth-terms-group[hidden]{display:none!important}
.teacher-profile-editor{padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid #dce2d8}.teacher-photo-row{display:grid;grid-template-columns:72px 1fr;gap:12px;align-items:center;margin:12px 0}.teacher-profile-photo{display:grid;width:72px;height:72px;place-items:center;overflow:hidden;border:1px solid #cfd7ca;border-radius:50%;color:#fff;background:#637c59;font-size:24px}.teacher-profile-photo img{width:100%;height:100%;object-fit:cover}.teacher-photo-upload{display:grid;gap:5px;color:#434a40;font-size:10px;font-weight:700}.teacher-photo-upload input{width:100%;height:auto;padding:7px;border:1px solid #ccd5c7;border-radius:6px;background:#fff;font-size:9px}.teacher-photo-upload small,.teacher-description-label small{color:#858c82;font-size:8px;font-weight:500}.teacher-photo-status{min-height:14px!important;margin:5px 0 10px!important;color:#637c59!important;font-size:9px!important}.teacher-description-label{display:grid;gap:6px;color:#434a40;font-size:10px;font-weight:700}.teacher-description-label textarea{width:100%;resize:vertical;padding:9px 10px;border:1px solid #ccd5c7;border-radius:7px;color:#252824;background:#fff;font:500 11px/1.5 Manrope,sans-serif;outline:0}.teacher-description-label textarea:focus{border-color:#637c59;box-shadow:0 0 0 3px #637c5919}.teacher-description-label small{text-align:right}.account-panel .teacher-profile-save{margin:9px 0 0;background:#637c59;color:#fff;border-color:#637c59}.teacher-student-area{padding-top:1px}

.account-mode .auth-shell{place-items:start center;padding:42px 24px 56px}
.account-mode .auth-card{width:min(860px,100%);padding:34px 38px}
.account-mode .account-panel{grid-template-columns:64px minmax(0,1fr);gap:16px 18px}
.account-mode .account-avatar{width:58px;height:58px;font-size:18px}
.account-mode .teacher-account-panel{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:18px 24px;padding:20px}
.account-mode .teacher-account-panel>.teacher-account-title,.account-mode .teacher-account-panel>p,.account-mode .teacher-account-panel>small{grid-column:1/-1}
.account-mode .teacher-profile-editor{grid-column:1/2}
.account-mode .teacher-invite-row,.account-mode #teacher-students{grid-column:2/3}
.account-mode .account-panel>#logout-button{max-width:220px;justify-self:end}
@media(max-width:720px){.account-mode .auth-shell{padding:28px 18px}.account-mode .auth-card{padding:26px 22px}.account-mode .teacher-account-panel{grid-template-columns:1fr}.account-mode .teacher-profile-editor,.account-mode .teacher-invite-row,.account-mode #teacher-students{grid-column:1}.account-mode .account-panel>#logout-button{max-width:none;justify-self:stretch}}

.teacher-phone-label{display:grid;gap:6px;margin:0 0 12px;color:#434a40;font-size:10px;font-weight:700}.teacher-phone-label input{width:100%;height:40px;padding:0 10px;border:1px solid #ccd5c7;border-radius:7px;color:#252824;background:#fff;font:500 11px Manrope,sans-serif;outline:0}.teacher-phone-label input:focus{border-color:#637c59;box-shadow:0 0 0 3px #637c5919}.teacher-phone-label small{color:#858c82;font-size:8px;font-weight:500}
