.dlh-portal-page{
  margin:0;
  min-height:100vh;
  background:radial-gradient(1200px 700px at 15% -10%, #f7f0e7 0%, #f2ede4 45%, #ece6db 100%);
  color:#2f3a34;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.dlh-portal-shell{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.dlh-portal{
  position:relative;
  width:100%;
  max-width:460px;
  background:#fdfbf7;
  border:1px solid #ddd6ca;
  border-radius:20px;
  padding:28px;
  box-shadow:0 14px 34px rgba(47,58,52,.08);
  overflow:hidden;
}

.dlh-portal-head h1{
  margin:0;
  font-size:30px;
  line-height:1.1;
  letter-spacing:-.02em;
}

.dlh-portal-head p{
  margin:10px 0 0;
  color:#6e7b74;
  font-size:15px;
  line-height:1.55;
}

.dlh-portal-error{
  margin-top:16px;
  border:1px solid #cf9da0;
  background:#fbebec;
  color:#7f2f35;
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
  line-height:1.4;
}

.dlh-portal-field{
  margin-top:18px;
}

.dlh-portal-field label{
  display:block;
  margin-bottom:8px;
  color:#3c4c45;
  font-size:14px;
  font-weight:600;
}

.dlh-portal-password-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}

.dlh-portal-password-wrap input{
  width:100%;
  height:50px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid #d2c9bc;
  background:#fff;
  color:#2f3a34;
  outline:0;
  transition:border-color .2s ease, box-shadow .2s ease;
}

.dlh-portal-password-wrap input:focus{
  border-color:#5e8b7e;
  box-shadow:0 0 0 3px rgba(94,139,126,.22);
}

.dlh-portal-toggle{
  height:50px;
  min-width:94px;
  padding:0 12px;
  border:1px solid #d2c9bc;
  border-radius:12px;
  background:#f3eee6;
  color:#2f3a34;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}

.dlh-portal-toggle:hover{
  border-color:#5e8b7e;
}

.dlh-portal-submit{
  width:100%;
  height:50px;
  margin-top:16px;
  border:1px solid #4f7a5a;
  border-radius:12px;
  background:linear-gradient(180deg,#5e8b7e 0%, #4f7a5a 100%);
  color:#fff;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:opacity .2s ease, transform .06s ease;
}

.dlh-portal-submit:hover{
  opacity:.96;
}

.dlh-portal-submit:active{
  transform:translateY(1px);
}

.dlh-portal-submit[disabled]{
  opacity:.75;
  cursor:wait;
}

.dlh-portal-meta{
  margin-top:12px;
  color:#6e7b74;
  font-size:12px;
  line-height:1.5;
}

.dlh-portal-transition{
  position:absolute;
  inset:0;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:rgba(253,251,247,.96);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(8px);
  transition:opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.dlh-portal.is-submitting .dlh-portal-transition{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}

.dlh-portal-transition-panel{
  width:100%;
  border:1px solid #d8d0c3;
  border-radius:16px;
  background:#fffaf2;
  padding:22px;
  box-shadow:0 16px 30px rgba(47,58,52,.12);
}

.dlh-portal-transition-icon{
  width:44px;
  height:44px;
  border-radius:50%;
  border:3px solid rgba(94,139,126,.2);
  border-top-color:#5e8b7e;
  animation:dlhPortalSpin .85s linear infinite;
}

.dlh-portal-transition-copy{
  margin-top:14px;
}

.dlh-portal-transition-copy h2{
  margin:0;
  color:#26332d;
  font-size:24px;
  line-height:1.15;
  letter-spacing:0;
}

.dlh-portal-transition-copy p{
  margin:8px 0 0;
  color:#63736b;
  font-size:15px;
  line-height:1.45;
}

.dlh-portal-progress{
  position:relative;
  height:8px;
  margin-top:18px;
  overflow:hidden;
  border-radius:999px;
  background:#e8dfd1;
}

.dlh-portal-progress span{
  position:absolute;
  inset:0 auto 0 0;
  width:46%;
  border-radius:inherit;
  background:linear-gradient(90deg,#4f7a5a 0%, #82a974 100%);
  animation:dlhPortalProgress 1.2s ease-in-out infinite;
}

.dlh-portal-skeleton{
  display:grid;
  gap:8px;
  margin-top:16px;
}

.dlh-portal-skeleton span{
  display:block;
  height:10px;
  border-radius:999px;
  background:linear-gradient(90deg,#ece4d8 0%, #f7f1e7 50%, #ece4d8 100%);
  background-size:220% 100%;
  animation:dlhPortalSkeleton 1.4s ease-in-out infinite;
}

.dlh-portal-skeleton span:nth-child(2){
  width:78%;
}

.dlh-portal-skeleton span:nth-child(3){
  width:58%;
}

.dlh-portal-status{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@keyframes dlhPortalSpin{
  to{
    transform:rotate(360deg);
  }
}

@keyframes dlhPortalProgress{
  0%{
    transform:translateX(-105%);
  }
  55%{
    transform:translateX(85%);
  }
  100%{
    transform:translateX(220%);
  }
}

@keyframes dlhPortalSkeleton{
  0%{
    background-position:120% 0;
  }
  100%{
    background-position:-120% 0;
  }
}


@media (max-width:640px){
  .dlh-portal-shell{
    align-items:flex-start;
    padding:18px;
  }

  .dlh-portal{
    margin-top:20px;
    border-radius:16px;
    padding:22px;
  }

  .dlh-portal-head h1{
    font-size:26px;
  }

  .dlh-portal-password-wrap{
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }

  .dlh-portal-toggle{
    width:100%;
  }

  .dlh-portal-transition{
    padding:22px;
  }

  .dlh-portal-transition-panel{
    padding:18px;
  }

  .dlh-portal-transition-copy h2{
    font-size:22px;
  }

}

@media (prefers-reduced-motion:reduce){
  .dlh-portal-password-wrap input,
  .dlh-portal-submit,
  .dlh-portal-transition{
    transition:none;
  }

  .dlh-portal-transition-icon,
  .dlh-portal-progress span,
  .dlh-portal-skeleton span{
    animation:none;
  }

  .dlh-portal-progress span{
    width:72%;
    transform:none;
  }

}
