.modal-overlay:has(.login-modal){display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:#0009;align-items:center;justify-content:center;z-index:9999;opacity:0;transition:opacity .3s}.modal-overlay:has(.login-modal).show{display:flex!important;opacity:1}.modal-container.login-modal{background:#fff;padding:30px;box-sizing:border-box;border-radius:20px;width:90%;max-width:400px;position:relative;box-shadow:0 10px 25px #0003;display:flex;flex-direction:column;animation:modalPop .3s ease-out}@keyframes modalPop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.modal-container .modal-close{position:absolute;top:15px;right:15px;background:none;border:none;font-size:24px;color:#999;cursor:pointer;line-height:1;z-index:10;padding:5px}.modal-container .modal-close:hover{color:#333}.modal-tabs{display:flex;border-bottom:2px solid #e0e0e0;margin-bottom:25px}.tab-btn{flex:1;text-align:center;padding:15px 0;font-size:16px;font-weight:600;color:#666;cursor:pointer;transition:all .3s;position:relative}.tab-btn.active{color:#667eea}.tab-btn.active:after{content:"";position:absolute;bottom:-2px;left:0;width:100%;height:2px;background:#667eea}.modal-body{padding:5px 0}.auth-form{display:none}.auth-form.active{display:block;animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.auth-form .form-group{margin-bottom:20px}.auth-form .form-input{width:100%;padding:12px 15px;background-color:#f8f9fa!important;color:#333!important;border:2px solid #e0e0e0!important;border-radius:10px;font-size:16px;transition:all .3s;outline:none;box-sizing:border-box}.auth-form .form-input::placeholder{color:#999!important}.auth-form .form-input:focus{border-color:#667eea!important;background-color:#fff!important;box-shadow:0 0 0 3px #667eea1a}.auth-form .btn-block{width:100%;padding:14px;display:flex;justify-content:center;align-items:center;border:none;border-radius:50px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-size:18px;font-weight:700;cursor:pointer;transition:transform .2s,box-shadow .2s;margin-top:10px}.auth-form .btn-block:hover{transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.auth-form .btn-block:active{transform:translateY(0)}.auth-form .btn-block:disabled{background:#ccc;cursor:not-allowed;transform:none;box-shadow:none}.agreement-group{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:13px;color:#666;margin-top:-5px;margin-bottom:15px!important}.agreement-label{display:flex;align-items:center;gap:6px;cursor:pointer}.agreement-label input[type=checkbox]{width:16px;height:16px;accent-color:#667eea;cursor:pointer}.agreement-link{color:#667eea;text-decoration:none;font-weight:500}.agreement-link:hover{text-decoration:underline}.agreement-modal-overlay{z-index:10001}.agreement-modal-content{background:#fff;border-radius:16px;width:90%;max-width:500px;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 10px 40px #0000004d;animation:modalPop .3s ease-out}.agreement-modal-header{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid #eee;flex-shrink:0}.agreement-modal-header h3{margin:0;font-size:18px;color:#333}.agreement-close-btn{background:none;border:none;font-size:28px;color:#999;cursor:pointer;line-height:1;padding:0}.agreement-close-btn:hover{color:#333}.agreement-modal-body{padding:20px;overflow-y:auto;flex:1;font-size:14px;line-height:1.8;color:#555}.agreement-modal-body h4{font-size:15px;color:#333;margin:20px 0 10px;padding-left:10px;border-left:3px solid #667eea}.agreement-modal-body h4:first-of-type{margin-top:15px}.agreement-modal-body p{margin-bottom:12px;text-align:justify}.agreement-modal-body ul{padding-left:20px;margin-bottom:15px}.agreement-modal-body li{margin-bottom:8px}.agreement-modal-body .update-date{text-align:center;color:#999;font-size:12px;margin-bottom:15px}.agreement-modal-body .highlight-box{background:#fff8e6;border-left:4px solid #ffc107;padding:15px;border-radius:8px;margin:15px 0}.agreement-modal-body .highlight-box h4{border-left:none;padding-left:0;margin-top:0;color:#856404}.agreement-modal-body .important-text{color:#dc3545;font-weight:600}.agreement-modal-footer{padding:15px 20px;border-top:1px solid #eee;flex-shrink:0}.agreement-modal-footer .btn-block{width:100%;padding:12px;border:none;border-radius:25px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s}.agreement-modal-footer .btn-block:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.switch-student-modal{background:#fffffff2;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);color:#333;border:1px solid rgba(255,255,255,.8);padding:25px;border-radius:16px;width:90%;max-width:400px;max-height:70vh;overflow-y:auto;box-shadow:0 10px 40px #0003;position:relative}.switch-student-modal h3{margin-top:0;margin-bottom:20px;text-align:center;font-size:1.25rem;color:#333}#switchStudentModal{background:#0000004d;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:none;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%;z-index:9999}#switchStudentModal.show{display:flex}.student-list{list-style:none;margin:0;padding:0}.student-item{padding:16px 20px;font-size:1.1rem;border-bottom:1px solid rgba(0,0,0,.05);cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:all .2s;border-radius:8px;margin-bottom:8px;background:#fff;box-shadow:0 2px 5px #0000000d}.student-item.selected{background-color:#f8f9fa;border-left:4px solid #10b981}.student-item.selected span,.student-item.selected .student-name-large,.student-item.selected .student-grade-small,.student-item.selected .current-tip{font-weight:900!important;color:#000!important;text-shadow:.5px 0 0 #000}.student-item:hover{background-color:#f0f4ff;transform:translateY(-1px)}.student-name-large{font-size:1.3rem;font-weight:700;color:#333}.student-grade-small{font-size:.95rem;color:#666;margin-left:auto;margin-right:10px}.student-item:last-child{border-bottom:none}.green-dot{width:10px;height:10px;background-color:#00fa9a;border-radius:50%;display:inline-block;animation:pulse 2s infinite;box-shadow:0 0 5px #00fa9a}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.current-tip{color:#00fa9a;font-size:.85rem;font-weight:600;text-shadow:0 0 5px rgba(0,250,154,.3)}.close-modal{position:absolute;top:15px;right:20px;font-size:28px;color:#999;cursor:pointer;line-height:1;transition:color .3s;z-index:10}.close-modal:hover{color:#333}
