/* OkulAI — kayıt ekranı kaydırma kararlılığı ve rol avatarları. */

/* Kayıt formlarında kaydırma sırasında repaint/layout titremesini azalt. */
#screen-reg-ogrenci-1,
#screen-reg-ogretmen-1,
#screen-reg-veli-1 {
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
  scroll-behavior: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout paint;
}

/* Form gövdesini ayrı compositor katmanında tut. */
#screen-reg-ogrenci-1 .reg-wrap,
#screen-reg-ogretmen-1 .reg-wrap,
#screen-reg-veli-1 .reg-wrap {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Kayıt ekranında focus/scroll sırasında animasyonlu geçişler layout'u sallamasın. */
#screen-reg-ogrenci-1 .form-input,
#screen-reg-ogrenci-1 .form-select,
#screen-reg-ogretmen-1 .form-input,
#screen-reg-ogretmen-1 .form-select,
#screen-reg-veli-1 .form-input,
#screen-reg-veli-1 .form-select {
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease !important;
}

.avatar-option.role-png-avatar{padding:3px!important;overflow:hidden!important;background:rgba(255,255,255,.045)!important;}
.avatar-option.role-png-avatar img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important;pointer-events:none!important;}
.avatar-option.role-png-avatar.active{border-color:var(--accent)!important;background:rgba(245,166,35,.13)!important;}
#reg-ogr-avatar-preview img,#reg-ogt-avatar-preview img,#reg-veli-avatar-preview img,#edit-avatar-preview img,#ekle-photo-preview img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important;}
