/* PhotoTag v2.03.93 — centered unified login/register portal. */
.auth-page{
  min-height:100dvh;
  margin:0;
  padding:20px;
  display:grid;
  place-items:center;
  overflow-x:hidden;
}
.auth-page .auth-shell{
  margin:0!important;
  padding:0!important;
  width:100%!important;
  max-width:none!important;
  min-height:calc(100dvh - 40px);
  display:grid;
  place-items:center;
}
.auth-portal{
  width:min(440px,100%);
  max-width:440px;
  margin:0 auto;
  padding:26px;
}
.auth-portal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:20px;
}
.auth-portal-head .auth-brand{min-width:0}
.auth-portal-head #lang{flex:0 0 auto}
.auth-mode-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
  margin:0 0 22px;
  padding:5px;
  border-radius:15px;
  background:#f1f3f7;
  border:1px solid #e4e8ef;
}
.auth-mode-tab{
  min-height:42px;
  border:0;
  border-radius:11px;
  background:transparent;
  color:#747d8b;
  font-weight:900;
  cursor:pointer;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.auth-mode-tab:hover{color:#20242b}
.auth-mode-tab[aria-selected="true"]{
  background:#fff;
  color:#16181d;
  box-shadow:0 5px 14px rgba(25,31,43,.09);
}
.auth-mode-tab:active{transform:scale(.985)}
.auth-panel[hidden]{display:none!important}
.auth-panel h1{font-size:30px;line-height:1.1;margin:0 0 8px}
.auth-panel>p{margin:0 0 18px;color:#707987;line-height:1.6}
.auth-panel .auth-error{margin:0 0 14px;padding:10px 12px;border-radius:11px;background:#fff0f0}
.auth-portal .auth-form{gap:13px}
.auth-portal .auth-form .btn{width:100%;min-height:44px;margin-top:3px}
.auth-portal .guest-link{
  display:block;
  margin-top:15px;
  text-align:center;
  color:#687181;
  font-size:13px;
  font-weight:800;
}
.auth-portal .register-avatar-picker{display:grid;gap:7px;position:relative;font-weight:750}
.auth-portal .custom-file-input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}
.auth-portal .custom-file-button{
  width:max-content;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 13px;
  border:1px solid #d9dfe8;
  border-radius:10px;
  background:#f7f8fb;
  color:#323842;
  font-size:13px;
  font-weight:850;
  cursor:pointer;
}
.auth-portal .custom-file-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7b8492;font-size:12px;font-weight:650}
@media(max-width:600px){
  .auth-page{padding:14px}
  .auth-page .auth-shell{min-height:calc(100dvh - 28px)}
  .auth-portal{width:100%;max-width:420px;padding:20px 18px;border-radius:20px}
  .auth-portal-head{margin-bottom:16px}
  .auth-portal-head .auth-brand{font-size:19px}
  .auth-portal-head .auth-brand img{width:34px;height:34px}
  .auth-portal-head #lang{max-width:118px;padding:8px 10px}
  .auth-mode-tabs{margin-bottom:19px}
  .auth-panel h1{font-size:27px}
}
@media(max-width:360px){
  .auth-page{padding:10px}
  .auth-page .auth-shell{min-height:calc(100dvh - 20px)}
  .auth-portal{padding:18px 14px}
  .auth-portal-head{gap:8px}
  .auth-portal-head #lang{max-width:104px}
}
