:root{
  --red:#c9161d;
  --bg:#f3f4f6;
  --card:#ffffff;
  --text:#252525;
  --muted:#667085;
  --line:#e5e7e9;
  --green:#2f7a45;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text);
}

body{line-height:1.45}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 12px 34px rgba(31,41,55,.07);
}

.card--accent{
  border-top:6px solid var(--red);
}

.eyebrow{
  color:var(--red);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.auth-page{
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:24px;
}

.auth-shell{
  width:100%;
  max-width:440px;
}

.auth-card{
  padding:28px;
}

.auth-logo{
  display:block;
  max-width:220px;
  max-height:70px;
  margin:0 auto 24px;
}

.auth-title-block{
  text-align:center;
}

.auth-title-block h1{
  margin:8px 0 18px;
  font-size:29px;
  line-height:1.15;
}

.recovery-intro{
  margin:0 0 18px;
  color:var(--muted);
  font-size:14px;
}

label{
  display:block;
  margin:14px 0 6px;
  font-size:14px;
  font-weight:700;
}

input{
  width:100%;
  height:48px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 14px;
  background:#fff;
  color:var(--text);
  font:inherit;
  outline:none;
}

input:focus{
  border-color:var(--red);
  box-shadow:0 0 0 3px rgba(201,22,29,.10);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border:1px solid var(--line);
  border-radius:12px;
  font:inherit;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
}

.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.btn--primary{
  background:var(--red);
  border-color:var(--red);
  color:#fff;
}

.btn--full{
  width:100%;
  margin-top:16px;
}

.auth-link{
  display:block;
  margin-top:18px;
  text-align:center;
  color:var(--red);
  font-weight:700;
  text-decoration:none;
}

.muted{color:var(--muted)}

.notice{
  margin:14px 0;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
}

.notice--error{
  background:#fff8f8;
  color:#8d1116;
}

.employee-code-grid{
  width:100%;
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr))
    16px
    repeat(4,minmax(0,1fr));
  gap:7px;
  align-items:center;
}

.employee-code-char{
  min-width:0;
  height:52px;
  padding:0;
  text-align:center;
  font-size:20px;
  font-weight:800;
  text-transform:uppercase;
}

.employee-code-separator{
  width:16px;
  text-align:center;
  color:var(--muted);
  font-size:22px;
  font-weight:800;
}

.employee-code-example{
  margin:8px 0 0;
  text-align:center;
  font-size:12px;
}

.recovery-success{
  text-align:center;
}

.recovery-success__icon{
  width:60px;
  height:60px;
  display:grid;
  place-items:center;
  margin:4px auto 14px;
  border-radius:50%;
  background:#edf7ef;
  color:var(--green);
  font-size:28px;
  font-weight:800;
}

.recovery-success h2{
  margin:0 0 7px;
  font-size:22px;
}

.recovery-success p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.security-note{
  margin:16px 0 0;
  padding:12px 13px;
  display:grid;
  gap:4px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fafafa;
  text-align:left;
}

.security-note strong{
  font-size:13px;
  color:var(--text);
}

.security-note span{
  font-size:12px;
  line-height:1.45;
  color:var(--muted);
}

.recovery-expiry{
  margin-top:15px!important;
  font-size:12px!important;
}

.password-field{
  position:relative;
}

.password-field input{
  padding-right:78px;
}

.password-toggle{
  position:absolute;
  top:50%;
  right:8px;
  transform:translateY(-50%);
  min-width:58px;
  height:34px;
  border:0;
  border-radius:8px;
  background:#f6f6f7;
  color:var(--red);
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}

.password-meter{
  display:grid;
  gap:5px;
  margin-top:8px;
  color:var(--muted);
  font-size:11px;
}

.password-meter__bar{
  height:5px;
  overflow:hidden;
  border-radius:99px;
  background:#eceef0;
}

.password-meter__bar span{
  display:block;
  width:8%;
  height:100%;
  border-radius:99px;
  background:var(--red);
  transition:width .2s ease;
}

.password-match{
  min-height:18px;
  margin:8px 0 0;
  font-size:12px;
}

.password-match.is-ok{
  color:var(--green);
}

.password-match.is-error{
  color:#a21419;
}

@media(max-width:480px){
  .auth-page{
    padding:16px 12px 28px;
  }

  .auth-card{
    padding:22px 18px;
  }

  .auth-title-block h1{
    font-size:27px;
  }

  .employee-code-grid{
    gap:5px;
    grid-template-columns:
      repeat(3,minmax(0,1fr))
      12px
      repeat(4,minmax(0,1fr));
  }

  .employee-code-char{
    height:48px;
    font-size:18px;
  }

  .employee-code-separator{
    width:12px;
  }
}
