/* Modern Salem login */
.login-body{
  min-height:100vh;
  min-height:100svh;
  margin:0;
  display:grid;
  place-items:center;
  padding:clamp(16px,3svh,32px);
  box-sizing:border-box;
  background:
    linear-gradient(135deg,rgba(255,255,255,.92),rgba(235,244,255,.82) 42%,rgba(210,232,255,.9)),
    repeating-linear-gradient(90deg,rgba(21,64,112,.055) 0 1px,transparent 1px 92px);
}
.login-shell{
  width:min(1120px,100%);
  min-height:min(660px,calc(100svh - clamp(32px,6svh,64px)));
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(390px,460px);
  gap:clamp(12px,1.6vw,18px);
  border:1px solid rgba(255,255,255,.7);
  border-radius:clamp(18px,2vw,26px);
  overflow:hidden;
  background:rgba(255,255,255,.34);
  box-shadow:0 30px 90px rgba(28,53,87,.18);
  backdrop-filter:blur(22px);
}
.login-brand-panel{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:clamp(28px,4vw,42px);
  color:#fff;
  background:
    linear-gradient(135deg,rgba(8,32,58,.92),rgba(23,78,131,.88) 56%,rgba(42,120,202,.82)),
    repeating-linear-gradient(0deg,rgba(255,255,255,.06) 0 1px,transparent 1px 88px);
}
.login-photo-panel{
  overflow:hidden;
  background:#0f172a;
}
.login-photo-panel::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(180deg,rgba(9,24,42,.08),rgba(9,24,42,.46)),
    linear-gradient(90deg,rgba(9,24,42,.08),rgba(9,24,42,0) 46%,rgba(9,24,42,.12));
}
.login-panel-photo{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 58%;
}
.login-photo-panel > *:not(.login-panel-photo){
  position:relative;
  z-index:2;
}
.login-logo-wrap{
  display:inline-flex;
  align-items:center;
  gap:12px;
  width:236px;
  max-width:100%;
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  background:rgba(255,255,255,.1);
  padding:14px 16px;
  backdrop-filter:blur(14px);
}
.login-photo-panel .login-logo-wrap{
  width:auto;
  border:1px solid rgba(255,255,255,.58);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(255,255,255,.34),rgba(255,255,255,.14));
  box-shadow:0 20px 48px rgba(3,13,27,.24),inset 0 1px 0 rgba(255,255,255,.34);
  backdrop-filter:blur(24px) saturate(160%);
  -webkit-backdrop-filter:blur(24px) saturate(160%);
}
.login-logo-wrap img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}
.login-photo-panel .login-logo-wrap img{
  width:clamp(36px,4.2vw,44px);
  height:clamp(36px,4.2vw,44px);
  flex:0 0 clamp(36px,4.2vw,44px);
}
.login-logo-wrap span{
  color:#fff;
  font-size:clamp(14px,1.5vw,18px);
  font-weight:950;
  line-height:1.1;
  white-space:nowrap;
  text-shadow:0 2px 10px rgba(3,13,27,.28);
}
.login-brand-copy{
  max-width:560px;
}
.login-system-name{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#d8ecff;
  padding:6px 12px;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:0;
}
.login-brand-panel h1{
  max-width:620px;
  margin:0;
  font-size:clamp(36px,4.6vw,54px);
  line-height:1.04;
  letter-spacing:0;
}
.login-photo-panel h1{
  color:#fff;
  text-shadow:0 3px 18px rgba(0,0,0,.42);
}
.login-brand-panel p{
  max-width:520px;
  margin:0;
  color:#e8f3ff;
  font-size:16px;
  line-height:1.65;
  font-weight:650;
}
.login-proof-grid{
  display:none!important;
}
.login-card{
  align-self:center;
  justify-self:center;
  width:min(410px,calc(100% - 40px));
  display:grid;
  gap:clamp(16px,2.2svh,22px);
  padding:clamp(28px,4vw,42px);
  border:1px solid rgba(255,255,255,.76);
  border-radius:22px;
  background:rgba(255,255,255,.68);
  box-shadow:0 24px 54px rgba(28,53,87,.16);
  backdrop-filter:blur(20px);
}
.login-eyebrow{
  color:#2563eb;
  font-size:11px;
  font-weight:950;
  letter-spacing:0;
  text-transform:uppercase;
}
.login-card h2{
  margin:8px 0 7px;
  font-size:clamp(28px,3vw,34px);
  line-height:1.12;
  letter-spacing:0;
}
.login-card p{
  margin:0;
  color:#5d6d84;
  font-weight:850;
}
.login-form{
  display:grid;
  gap:clamp(13px,1.8svh,17px);
}
.login-form label{
  display:grid;
  gap:7px;
  color:#34445b;
  font-size:12px;
  font-weight:950;
}
.login-form input{
  min-height:clamp(46px,6svh,52px);
  border:1px solid rgba(162,177,198,.58);
  border-radius:12px;
  background:rgba(255,255,255,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
.login-form input:focus{
  border-color:#78a7ff;
  box-shadow:0 0 0 4px rgba(47,111,242,.12);
}
.login-form button{
  min-height:clamp(46px,6svh,52px);
  border-radius:12px;
  background:linear-gradient(135deg,#215fd7,#3547d9);
  box-shadow:0 14px 28px rgba(37,99,235,.24);
}
.login-form .login-google-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  min-height:clamp(44px,5.6svh,48px);
  border:1px solid #dadce0;
  border-radius:12px;
  background:#fff;
  color:#1f2937;
  box-shadow:0 8px 18px rgba(15,23,42,.06);
  font-size:14px;
  font-weight:900;
  line-height:1.1;
  text-decoration:none;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.login-form .login-google-button:hover{
  background:#f8fafc;
  border-color:#c6d0dd;
  box-shadow:0 12px 24px rgba(15,23,42,.09);
  text-decoration:none;
}
.login-form .login-google-button:focus-visible{
  outline:3px solid rgba(66,133,244,.28);
  outline-offset:2px;
  text-decoration:none;
}
.login-form .login-google-button span{
  color:inherit;
  text-decoration:none;
}
.login-google-button img{
  display:block;
  width:20px;
  height:20px;
  flex:0 0 auto;
}
.login-card .flash{
  border-radius:12px;
}
.login-version{
  justify-self:center;
  align-self:end;
  color:#718096;
  font-size:11px;
  font-weight:400;
  line-height:1.35;
  text-align:center;
}
.login-body.has-login-notice .login-shell{
  margin:clamp(12px,3svh,28px) clamp(12px,3vw,28px);
}
@media(max-height:820px) and (min-width:901px){
  .login-body{
    padding:clamp(12px,2svh,20px);
  }
  .login-shell{
    width:min(1060px,100%);
    min-height:min(600px,calc(100svh - 24px));
    grid-template-columns:minmax(0,1fr) minmax(360px,430px);
  }
  .login-brand-panel{
    padding:28px;
  }
  .login-photo-panel .login-logo-wrap{
    padding:10px 12px;
    border-radius:16px;
  }
  .login-photo-panel .login-logo-wrap img{
    width:36px;
    height:36px;
    flex-basis:36px;
  }
  .login-brand-panel h1{
    font-size:clamp(32px,4vw,44px);
  }
  .login-card{
    width:min(390px,calc(100% - 32px));
    padding:28px;
    gap:14px;
  }
  .login-card h2{
    margin:4px 0 5px;
    font-size:28px;
  }
  .login-card p{
    font-size:14px;
  }
  .login-form input,
  .login-form button{
    min-height:46px;
  }
  .login-form .login-google-button{
    min-height:44px;
  }
}
@media(max-height:680px) and (min-width:901px){
  .login-shell{
    min-height:calc(100svh - 24px);
  }
  .login-brand-panel{
    padding:24px;
  }
  .login-brand-panel h1{
    font-size:34px;
  }
  .login-card{
    padding:24px;
    gap:12px;
  }
  .login-card h2{
    font-size:26px;
  }
  .login-form{
    gap:11px;
  }
  .login-version{
    font-size:10.5px;
  }
}
@media(max-width:900px){
  .login-body{
    padding:18px;
    min-height:100svh;
    place-items:start center;
  }
  .login-shell{
    grid-template-columns:1fr;
    align-content:start;
    min-height:0;
    width:min(100%,520px);
    border-radius:18px;
  }
  .login-brand-panel{
    gap:clamp(24px,5svh,58px);
    padding:28px;
    min-height:clamp(168px,26svh,210px);
  }
  .login-brand-panel h1{
    font-size:clamp(28px,8vw,34px);
  }
  .login-card{
    width:auto;
    margin:0 18px 18px;
    padding:clamp(22px,5vw,28px);
  }
}
@media(max-width:560px){
  .login-body{
    padding:0;
    background:linear-gradient(180deg,#eef6ff,#f8fbff 58%,#eef5ff);
  }
  .login-shell{
    width:100%;
    min-height:100svh;
    border:0;
    border-radius:0;
    box-shadow:none;
    background:transparent;
    backdrop-filter:none;
  }
  .login-brand-panel{
    min-height:162px;
    padding:calc(18px + env(safe-area-inset-top)) 18px 18px;
    gap:18px;
    border-radius:0 0 24px 24px;
  }
  .login-photo-panel::after{
    background:linear-gradient(180deg,rgba(9,24,42,.14),rgba(9,24,42,.48));
  }
  .login-photo-panel .login-logo-wrap{
    max-width:100%;
    padding:10px 12px;
    border-radius:16px;
  }
  .login-photo-panel .login-logo-wrap img{
    width:34px;
    height:34px;
    flex-basis:34px;
  }
  .login-logo-wrap span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:14px;
  }
  .login-brand-panel h1{
    max-width:100%;
    font-size:26px;
    line-height:1.1;
  }
  .login-card{
    align-self:start;
    justify-self:stretch;
    width:auto;
    margin:14px 12px calc(12px + env(safe-area-inset-bottom));
    padding:22px;
    gap:16px;
    border-radius:20px;
    background:rgba(255,255,255,.95);
  }
  .login-card h2{
    font-size:28px;
  }
  .login-form{
    gap:13px;
  }
  .login-form input{
    min-height:50px;
    font-size:16px;
  }
  .login-form button,
  .login-form .login-google-button{
    min-height:50px;
  }
  .login-version{
    justify-self:center;
    font-size:10px;
  }
}
@media(max-height:680px) and (max-width:560px){
  .login-brand-panel{
    min-height:132px;
  }
  .login-brand-panel h1{
    font-size:22px;
  }
  .login-card{
    margin-top:10px;
    padding:18px;
  }
}
