/* P.D. Technology employee authentication extension.
   This file intentionally does NOT restyle the global header/footer/navigation.
   Those continue to come from the site's existing assets/css/site.css. */

.employee-auth-page .employee-auth-wrap{
  padding-top:clamp(132px,15vw,164px);
  padding-bottom:clamp(72px,9vw,108px);
  min-height:78vh;
  display:grid;
  place-items:center;
}

.employee-auth-page .employee-auth-card{
  width:min(620px,100%);
  padding:clamp(27px,4vw,38px);
  overflow:hidden;
}

.employee-auth-page .auth-card-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:8px;
}

.employee-auth-page .auth-card-topline .eyebrow{margin-bottom:0}
.employee-auth-page .auth-protected{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#aab6c8;
  font-size:10px;
  font-weight:720;
  white-space:nowrap;
}
.employee-auth-page .auth-protected i{
  width:7px;height:7px;border-radius:50%;background:var(--green);
  box-shadow:0 0 16px rgba(85,221,164,.66)
}

.employee-auth-page .auth-status{
  display:none;
  margin:16px 0 0;
  min-height:0;
  padding:11px 13px;
  border-radius:13px;
  border:1px solid rgba(103,173,255,.18);
  background:rgba(103,173,255,.055);
  color:#b7c7da;
  font-size:12px;
  line-height:1.55;
}
.employee-auth-page .auth-status.is-visible{display:block}
.employee-auth-page .auth-status.success{border-color:rgba(85,221,164,.22);background:rgba(85,221,164,.055);color:#bfe0d0}
.employee-auth-page .auth-status.error{border-color:rgba(255,133,153,.28);background:rgba(255,133,153,.06);color:#ffc2cc}

.employee-auth-page .auth-stage-wrap{
  position:relative;
  overflow:hidden;
  transition:height .34s var(--ease);
}
.employee-auth-page .auth-stage{
  padding-top:24px;
  opacity:1;
  transform:translateY(0);
}
.employee-auth-page .auth-stage[hidden]{display:none!important}
.employee-auth-page .auth-stage h1{
  margin:0 0 10px;
  font-size:clamp(32px,5vw,40px);
  line-height:1.04;
  letter-spacing:-.045em;
}
.employee-auth-page .auth-stage>p{
  margin:0 0 26px;
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
}

.employee-auth-page .auth-form-grid{grid-template-columns:1fr;gap:17px}
.employee-auth-page .password-control{position:relative}
.employee-auth-page .password-control .input{padding-right:74px}
.employee-auth-page .password-toggle{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  min-width:54px;
  height:34px;
  border:0;
  border-radius:10px;
  background:rgba(255,255,255,.055);
  color:#c4cddd;
  font-size:10px;
  font-weight:760;
  cursor:pointer;
}
.employee-auth-page .password-toggle:hover{background:rgba(255,255,255,.09);color:#fff}
.employee-auth-page .auth-actions{justify-content:flex-end}
.employee-auth-page .auth-submit{width:100%}
.employee-auth-page .auth-submit.is-busy span::after{
  content:"";
  display:inline-block;
  width:11px;height:11px;
  margin-left:9px;
  border:1.5px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  border-radius:50%;
  vertical-align:-1px;
  animation:pdAuthSpin .7s linear infinite
}
@keyframes pdAuthSpin{to{transform:rotate(360deg)}}
.employee-auth-page .auth-helper{
  margin:20px 0 0;
  padding-top:17px;
  border-top:1px solid var(--line);
  color:var(--faint);
  font-size:11px;
  line-height:1.65;
  text-align:center;
}

/* QR setup — QR is primary, manual key is fallback only. */
.employee-auth-page .qr-block{
  display:grid;
  justify-items:center;
  gap:13px;
  margin:4px 0 24px;
}
.employee-auth-page .qr-frame{
  width:232px;
  height:232px;
  padding:14px;
  border-radius:22px;
  background:#fff;
  box-shadow:0 22px 54px rgba(0,0,0,.34),0 0 0 1px rgba(255,255,255,.12);
}
.employee-auth-page .qr-code{
  width:204px;
  height:204px;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.employee-auth-page .qr-code svg{
  width:100%;
  height:100%;
  display:block;
}
.employee-auth-page .qr-account{text-align:center;display:grid;gap:4px}
.employee-auth-page .qr-account strong{font-size:13px;color:#f6f8fc}
.employee-auth-page .qr-account span{font-size:11px;color:var(--faint);overflow-wrap:anywhere}

.employee-auth-page .otp-input{
  min-height:66px;
  text-align:center;
  font-size:28px;
  font-weight:800;
  letter-spacing:.28em;
  font-variant-numeric:tabular-nums;
  padding-left:calc(14px + .28em);
}
.employee-auth-page .recovery-input{
  min-height:58px;
  text-align:center;
  font:760 16px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing:.08em;
}
.employee-auth-page .manual-fallback{
  margin-top:18px;
  padding-top:15px;
  border-top:1px solid var(--line);
}
.employee-auth-page .manual-fallback summary{
  cursor:pointer;
  color:#b7c6d9;
  font-size:11px;
  font-weight:760;
}
.employee-auth-page .manual-fallback p{
  margin:10px 0;
  color:var(--faint);
  font-size:10.5px;
  line-height:1.55;
}
.employee-auth-page .manual-key-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(0,0,0,.22);
}
.employee-auth-page .manual-key-row code{
  flex:1;
  color:#d9e6fa;
  font:700 10.5px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing:.055em;
  overflow-wrap:anywhere;
}
.employee-auth-page .manual-key-row button{
  border:0;
  background:transparent;
  color:var(--blue);
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}

.employee-auth-page .auth-text-button{
  display:block;
  margin:17px auto 0;
  padding:6px 8px;
  border:0;
  background:transparent;
  color:#9fb4d0;
  font-size:11px;
  font-weight:740;
  cursor:pointer;
}
.employee-auth-page .auth-text-button:hover{color:#fff}

.employee-auth-page .recovery-vault{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(0,0,0,.18);
}
.employee-auth-page .recovery-vault-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
}
.employee-auth-page .recovery-vault-head strong{font-size:12px}
.employee-auth-page .recovery-vault-head span{font-size:9px;color:var(--green);font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.employee-auth-page .recovery-codes{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line)}
.employee-auth-page .recovery-code{
  padding:12px;
  background:rgba(6,9,16,.96);
  color:#e7eef9;
  text-align:center;
  font:720 11px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing:.05em;
  user-select:all;
}
.employee-auth-page .recovery-actions{display:flex;gap:10px;margin-top:15px}
.employee-auth-page .recovery-actions .button{flex:1}

.employee-auth-page .auth-success-stage{text-align:center;padding:42px 0 20px}
.employee-auth-page .success-mark{
  width:68px;height:68px;
  margin:0 auto 20px;
  display:grid;
  place-items:center;
  border:1px solid rgba(85,221,164,.28);
  border-radius:50%;
  background:rgba(85,221,164,.075);
  color:var(--green);
  font-size:26px;
  box-shadow:0 0 46px rgba(85,221,164,.09);
}
.employee-auth-page .auth-success-stage .eyebrow{margin-bottom:15px}
.employee-auth-page .success-loader{width:150px;height:2px;margin:24px auto 0;background:rgba(255,255,255,.07);overflow:hidden;border-radius:999px}
.employee-auth-page .success-loader i{display:block;width:42%;height:100%;background:linear-gradient(90deg,var(--cyan),var(--blue),var(--violet));animation:pdAuthLoad .9s ease-in-out infinite}
@keyframes pdAuthLoad{from{transform:translateX(-110%)}to{transform:translateX(260%)}}

.employee-auth-page .auth-security-note{margin-top:23px}

@media(max-width:640px){
  .employee-auth-page .employee-auth-wrap{padding-top:112px;padding-bottom:64px;align-items:start}
  .employee-auth-page .employee-auth-card{padding:23px;border-radius:24px}
  .employee-auth-page .auth-card-topline{align-items:flex-start}
  .employee-auth-page .auth-stage h1{font-size:31px}
  .employee-auth-page .qr-frame{width:214px;height:214px;padding:13px}
  .employee-auth-page .qr-code{width:188px;height:188px}
  .employee-auth-page .otp-input{font-size:25px}
  .employee-auth-page .recovery-codes{grid-template-columns:1fr}
  .employee-auth-page .recovery-actions{flex-direction:column}
}

@media(prefers-reduced-motion:reduce){
  .employee-auth-page .auth-stage-wrap{transition:none}
}
