/* Bitikda v0.19.597 | Premium auth layout repair - additive override */
/* Does not touch authentication, CSRF, 2FA, registration or reset logic. */

/* 1. System logo: larger artwork, no ornamental inset / padding. */
body.theme-auth .auth-brand-logo{
  width:60px!important;height:60px!important;flex:0 0 60px!important;
  overflow:hidden!important;display:grid!important;place-items:center!important;
  padding:0!important;border:0!important;border-radius:15px!important;
  background:transparent!important;box-shadow:none!important;
}
body.theme-auth .auth-brand-logo img{
  display:block!important;width:100%!important;height:100%!important;
  padding:0!important;margin:0!important;object-fit:cover!important;
  object-position:center!important;transform:scale(1.08);
}
body.theme-auth .auth-brand{gap:10px!important}
body.theme-auth .auth-brand strong{font-size:23px!important}

/* 2. A quiet illuminated border only on enabled links. No flashing on placeholders. */
body.theme-auth a.auth-download-tile:not(.is-disabled){
  position:relative;isolation:isolate;
  animation:bitikda-download-glow 4s ease-in-out infinite;
  transition:transform .2s ease,border-color .2s ease;
}
body.theme-auth a.auth-download-tile:not(.is-disabled):hover,
body.theme-auth a.auth-download-tile:not(.is-disabled):focus-visible{
  animation-play-state:paused;transform:translateY(-2px);
  outline:2px solid rgba(255,255,255,.34);outline-offset:2px;
}
@keyframes bitikda-download-glow{
  0%,100%{box-shadow:0 12px 26px rgba(0,0,0,.25),0 0 0 0 rgba(35,151,255,.04)}
  50%{box-shadow:0 12px 28px rgba(0,0,0,.28),0 0 17px 2px rgba(44,169,255,.30)}
}
body.theme-auth a.auth-download-tile.is-android:not(.is-disabled){animation-name:bitikda-android-glow}
@keyframes bitikda-android-glow{
  0%,100%{box-shadow:0 12px 26px rgba(0,0,0,.25),0 0 0 0 rgba(27,200,106,.04)}
  50%{box-shadow:0 12px 28px rgba(0,0,0,.28),0 0 17px 2px rgba(29,226,123,.30)}
}

/* 3. Stable artwork layer; growing corporate fields no longer resize the scene. */
body.auth-body.theme-auth{background:#050911!important}
body.auth-body.theme-auth::before{
  content:""!important;display:block!important;position:fixed!important;
  inset:0!important;z-index:0!important;pointer-events:none!important;
  background:linear-gradient(90deg,rgba(3,8,15,.28),rgba(3,8,15,.09) 54%,rgba(3,8,15,.48)),
             url('/assets/img/auth/bitikda-auth-premium-desktop-v3.webp') center center / cover no-repeat!important;
  filter:none!important;opacity:1!important;
}
body.auth-body.theme-auth::after{opacity:.12!important}

/* 4. Desktop: showcase remains in the viewport, only a tall register form scrolls. */
@media (min-width:1101px){
  html,body.auth-body.theme-auth{height:100%!important;overflow:hidden!important}
  body.theme-auth .auth-shell{
    height:100dvh!important;min-height:100dvh!important;
    display:grid!important;overflow:hidden!important;
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)!important;
  }
  body.theme-auth .auth-showcase{
    min-height:0!important;height:100dvh!important;
    padding:clamp(18px,3vh,30px) clamp(22px,3.9vw,58px)!important;
    justify-content:flex-start!important;overflow:hidden!important;
  }
  body.theme-auth .auth-showcase-content{
    min-width:0!important;max-width:740px!important;
    margin:auto 0!important;padding:4px 0!important;
    transform:none!important;
  }
  body.theme-auth .auth-showcase h1{
    font-size:clamp(40px,4.45vw,68px)!important;
    line-height:.97!important;
    margin:9px 0 12px!important;
  }
  body.theme-auth .auth-showcase p{font-size:clamp(13px,1.04vw,16px)!important;line-height:1.48!important}
  body.theme-auth .auth-form-side{
    box-sizing:border-box!important;
    min-width:0!important;min-height:0!important;height:100dvh!important;
    display:flex!important;align-items:safe center!important;
    justify-content:center!important;
    margin:0!important;padding:18px clamp(15px,2vw,30px)!important;
    overflow-x:hidden!important;overflow-y:auto!important;
    overscroll-behavior-y:contain!important;scrollbar-gutter:stable;
  }
  body.theme-auth .auth-card{margin:auto!important;flex:0 1 auto}
  body.theme-auth .auth-card-register{
    width:min(100%,610px)!important;max-width:610px!important;
    padding:20px clamp(17px,2vw,26px)!important;
    overflow:visible!important;isolation:isolate;
  }
  body.theme-auth .auth-card-register .auth-card-head h2{
    font-size:clamp(28px,2.5vw,37px)!important;line-height:1.08!important;
  }
  body.theme-auth .auth-card-register .auth-card-head p{margin-bottom:13px!important}
  body.theme-auth .auth-card-register .auth-form{gap:9px!important}
  body.theme-auth .auth-card-register .auth-account-type-grid{gap:9px!important}
  body.theme-auth .auth-card-register .auth-account-type-option>span{min-height:66px!important;padding:9px!important}
  body.theme-auth .auth-card-register .auth-input-wrap{height:44px!important}
  body.theme-auth .auth-card-register .auth-corporate-fields{padding:10px!important;gap:9px!important}
  body.theme-auth .auth-card-register .auth-submit{min-height:46px!important}
  body.theme-auth .auth-card-register .auth-divider{margin:11px 0 8px!important}
  body.theme-auth .auth-card-register .auth-secondary{min-height:42px!important}
  body.theme-auth .auth-card-register .auth-legal{margin-top:8px!important}
  body.theme-page-kayit .auth-showcase-content{margin:auto 0!important}
}

/* 5. All screen sizes: avoid clipped two-column fields / corporate paint jumps. */
body.theme-auth .auth-form-side,body.theme-auth .auth-card,
body.theme-auth .auth-corporate-fields,body.theme-auth .auth-field-grid,
body.theme-auth .auth-account-type-grid,body.theme-auth .auth-account-type-option,
body.theme-auth .auth-field,body.theme-auth .auth-input-wrap{min-width:0!important;max-width:100%;box-sizing:border-box!important}
body.theme-auth .auth-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.theme-auth .auth-account-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.theme-auth .auth-account-type-option>span{
  min-width:0!important;display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;align-items:center!important;
  overflow:hidden!important;
}
body.theme-auth .auth-account-type-option>span b,
body.theme-auth .auth-account-type-option>span small{min-width:0;overflow-wrap:anywhere}
body.theme-auth .auth-field-grid .auth-input-wrap input{min-width:0!important;width:100%!important}
body.theme-auth .auth-corporate-fields{
  contain:none!important;overflow:visible!important;
  background:linear-gradient(145deg,rgba(255,138,0,.06),rgba(11,21,33,.88))!important;
}
body.theme-auth .auth-card-register{
  box-shadow:0 20px 55px rgba(0,0,0,.43),inset 0 1px 0 rgba(255,255,255,.045)!important;
  border:1px solid rgba(255,158,35,.43)!important;
  background:linear-gradient(160deg,rgba(9,15,24,.975),rgba(5,10,18,.98) 75%,rgba(25,13,8,.97))!important;
}

/* 6. Tablet and mobile retain natural scrolling; avoid previous breakpoint conflict. */
@media (max-width:1100px){
  html,body.auth-body.theme-auth{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important}
  body.theme-auth .auth-shell{height:auto!important;min-height:100dvh!important;display:block!important;overflow:visible!important}
  body.theme-auth .auth-showcase{height:auto!important;min-height:0!important}
  body.theme-auth .auth-showcase-content{margin:0!important;padding:26px 0 12px!important}
  body.theme-auth .auth-form-side{height:auto!important;min-height:0!important;overflow:visible!important}
  body.theme-auth .auth-card-register{overflow:visible!important}
}
@media (max-width:640px){
  body.auth-body.theme-auth::before{
    background:linear-gradient(180deg,rgba(3,8,15,.38),rgba(3,8,15,.67)),
               url('/assets/img/auth/bitikda-auth-premium-mobile-v3.webp') center top / cover no-repeat!important;
  }
  body.theme-auth .auth-brand-logo{width:49px!important;height:49px!important;flex-basis:49px!important;border-radius:12px!important}
  body.theme-auth .auth-showcase-content{padding:7px 0!important}
  body.theme-auth .auth-card-register .auth-field-grid{grid-template-columns:1fr!important}
  body.theme-auth .auth-card-register .auth-account-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.theme-auth .auth-card-register .auth-account-type-option>span{
    grid-template-columns:32px minmax(0,1fr)!important;min-height:72px!important;
    padding:8px!important;gap:7px!important;
  }
  body.theme-auth .auth-card-register .auth-account-type-option .auth-account-type-icon{
    width:30px!important;height:30px!important;
  }
  body.theme-auth .auth-card-register .auth-account-type-option small{font-size:9px!important}
  body.theme-auth .auth-card-register .auth-corporate-fields{padding:10px!important}
  body.theme-auth .auth-card-register .auth-card-head h2{font-size:clamp(27px,7.4vw,35px)!important}
}
@media (max-width:370px){body.theme-auth .auth-card-register .auth-account-type-grid{grid-template-columns:1fr!important}}
@media (prefers-reduced-motion:reduce){body.theme-auth a.auth-download-tile:not(.is-disabled){animation:none!important;transition:none!important}}

/* Prevent anchors/labels in compact corporate form from forcing a wider viewport. */
body.theme-page-kayit .auth-account-type-option,body.theme-page-kayit .auth-corporate-fields,body.theme-page-kayit .auth-corporate-fields .auth-input-wrap{min-width:0!important}
