/* HR PORTAL LOGIN REFRESH (2026-09-05)
 * ---------------------------------------------------------------------------
 * Presentation only. This sheet dresses admin/login.php and nothing else — it
 * is linked from that page alone, after portal.css and admin.css, and every
 * rule is scoped under .hrp-login so it cannot reach the staff login or any
 * signed-in page. Delete the one <link> in admin/login.php and the page falls
 * back to the plain .auth-card it used before.
 *
 * The authentication block above the closing `?>` in login.php is untouched:
 * same form, same field names, same CSRF token, same POST handling, same
 * redirects. The show/hide password control is still the one auth.php injects
 * (assets/password-visibility.js), which wraps the input in .password-field
 * and positions its own button with !important — so the password input keeps
 * room on the right for it and this sheet never styles that button.
 * ------------------------------------------------------------------------ */

.hrp-login{
 --hrpl-navy:#173854;
 --hrpl-ink:#12324e;
 --hrpl-muted:#64798a;
 --hrpl-red:#e0342f;
 --hrpl-line:#dbe6ee;
 --hrpl-card:#fff;

 min-height:100vh;
 margin:0;
 background:linear-gradient(160deg,#eaf3fa 0%,#f2f7fb 42%,#fdfefe 100%);
 color:var(--hrpl-ink);
 font-family:Arial,Helvetica,sans-serif;
 -webkit-font-smoothing:antialiased;
}

/* The shell clips the watermark, so the mark can hang off the right edge
 * without ever producing a horizontal scrollbar. */
.hrp-login-shell{
 position:relative;
 display:flex;
 flex-direction:column;
 min-height:100vh;
 overflow:hidden;
 padding:0 clamp(20px,4vw,64px);
}

/* ---- watermark -----------------------------------------------------------
 * The same assets/logo.png the card shows, so there is no second image to
 * download — the browser already has it. The file is the full lockup, mark
 * plus wordmark, so it is drawn oversized and pushed far enough right that
 * only the circular mark stays in view and the words leave the page. */
.hrp-login-mark{
 position:absolute;
 z-index:0;
 top:50%;
 right:0;
 width:min(1900px,190vh);
 height:auto;
 /* translate percentages resolve against the image's own width, so this hides
  * a fixed share of the file — the wordmark — whatever the window is doing.
  * The circular mark is the leftmost ~33%, and 70% out leaves all of it in
  * view with a sliver bleeding past the right edge. */
 transform:translate(70%,-50%);
 opacity:.07;
 pointer-events:none;
 user-select:none;
}

.hrp-login-grid{
 position:relative;
 z-index:1;
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(0,486px) minmax(0,1fr);
 flex:1 1 auto;
 align-items:center;
 gap:clamp(24px,4vw,56px);
 width:100%;
 max-width:1560px;
 margin:0 auto;
 padding:44px 0 28px;
}

/* Explicit placement, because the card comes first in the markup: on a narrow
 * screen the sign-in box should be the first thing in the document, but on a
 * wide one it belongs in the middle column with the introduction to its left. */
/* The row matters as much as the column: with only a column named, the card
 * takes row 1 and auto-placement drops the other two onto row 2 beneath it. */
.hrp-login-intro{grid-column:1;grid-row:1}
.hrp-login-card{grid-column:2;grid-row:1}
.hrp-login-tagline{grid-column:3;grid-row:1}

/* ======================================================= left introduction */
.hrp-login-intro{max-width:470px}

.hrp-login-eyebrow{
 position:relative;
 margin:0 0 22px;
 padding-bottom:16px;
 color:#6f8ba3;
 font-size:13px;
 font-weight:700;
 line-height:1.55;
 letter-spacing:.16em;
 text-transform:uppercase;
}
.hrp-login-eyebrow::after{
 content:"";
 position:absolute;
 bottom:0;left:0;
 width:56px;height:3px;
 border-radius:2px;
 background:var(--hrpl-red);
}

.hrp-login-intro h2{
 margin:0 0 20px;
 color:var(--hrpl-navy);
 font-size:clamp(30px,3.3vw,46px);
 font-weight:800;
 line-height:1.12;
 letter-spacing:-.015em;
}

.hrp-login-lede{
 margin:0 0 34px;
 max-width:400px;
 color:var(--hrpl-muted);
 font-size:16px;
 line-height:1.62;
}

.hrp-login-points{margin:0;padding:0;list-style:none;display:grid;gap:18px}
.hrp-login-points li{display:flex;align-items:center;gap:16px}
.hrp-login-points i{
 display:grid;
 place-items:center;
 flex:0 0 auto;
 width:52px;height:52px;
 border-radius:15px;
 background:#e3eef8;
 color:#2d6791;
}
.hrp-login-points svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hrp-login-points strong{display:block;color:var(--hrpl-navy);font-size:16px;line-height:1.3}
.hrp-login-points small{display:block;margin-top:3px;color:var(--hrpl-muted);font-size:14px}

/* ============================================================= login card */
.hrp-login-card{
 overflow:hidden;
 border:1px solid #e6eef4;
 border-radius:18px;
 background:var(--hrpl-card);
 box-shadow:0 24px 60px rgba(19,54,84,.10),0 2px 6px rgba(19,54,84,.04);
}
.hrp-login-card>*{padding-left:clamp(24px,4vw,44px);padding-right:clamp(24px,4vw,44px)}

.hrp-login-logo{display:block;padding-top:34px;text-align:center}
.hrp-login-logo img{width:min(300px,78%);height:auto}

.hrp-login-card h1{
 margin:18px 0 0;
 color:var(--hrpl-navy);
 font-size:40px;
 font-weight:800;
 line-height:1.1;
 letter-spacing:-.02em;
 text-align:center;
}
.hrp-login-sub{margin:8px 0 0;color:#4a677f;font-size:17px;text-align:center}

.hrp-login-badge{
 display:flex;
 align-items:center;
 justify-content:center;
 gap:9px;
 width:fit-content;
 margin:18px auto 0;
 padding:9px 18px;
 border-radius:999px;
 background:#e9f1f8;
 color:var(--hrpl-navy);
 font-size:14px;
 font-weight:700;
}
.hrp-login-badge svg{width:15px;height:15px;fill:currentColor}

.hrp-login-blurb{
 margin:18px auto 0;
 max-width:340px;
 color:var(--hrpl-muted);
 font-size:14.5px;
 line-height:1.55;
 text-align:center;
}

/* ---- the existing form, restyled ---- */
.hrp-login-card form{margin:24px 0 0;padding-bottom:4px}

.hrp-login-field{display:block;margin-bottom:18px}
.hrp-login-field>span{
 display:block;
 margin-bottom:7px;
 color:var(--hrpl-navy);
 font-size:14px;
 font-weight:700;
}
.hrp-login-field input{
 width:100%;
 min-height:52px;
 padding:12px 14px 12px 46px;
 border:1px solid var(--hrpl-line);
 border-radius:11px;
 background:#fff no-repeat left 15px center/18px 18px;
 color:var(--hrpl-ink);
 font:15px/1.4 Arial,Helvetica,sans-serif;
}
.hrp-login-field input::placeholder{color:#9aabb8}
.hrp-login-field input:focus{
 border-color:#7fa9c6;
 outline:2px solid rgba(45,103,145,.22);
 outline-offset:1px;
}
/* Field marks as background images: no extra markup for the password script
 * to trip over when it wraps the input in .password-field. */
.hrp-login-field.is-user input{
 background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d93a5' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4.5 20a7.5 7.5 0 0 1 15 0'/></svg>");
}
.hrp-login-field.is-password input{
 background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d93a5' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='10.5' width='16' height='10' rx='2.2'/><path d='M8 10.5V7.8a4 4 0 0 1 8 0v2.7'/></svg>");
}

.hrp-login-card button[type=submit]{
 display:flex;
 align-items:center;
 justify-content:center;
 gap:11px;
 width:100%;
 min-height:54px;
 margin-top:26px;
 padding:14px 18px;
 border:0;
 border-radius:11px;
 background:var(--hrpl-red);
 color:#fff;
 font:800 16px/1 Arial,Helvetica,sans-serif;
 cursor:pointer;
 box-shadow:0 8px 18px rgba(224,52,47,.24);
 transition:background .12s ease;
}
.hrp-login-card button[type=submit]:hover{background:#c92a26}
.hrp-login-card button[type=submit]:focus-visible{outline:3px solid #f4a6a3;outline-offset:2px}

/* The error the POST handler already produces, in the card's own language. */
.hrp-login-card .error{
 margin:20px 0 0;
 padding:13px 15px;
 border:1px solid #f0c4c2;
 text-align:center;
 border-radius:9px;
 background:#fdf1f0;
 color:#98241f;
 font-size:14px;
 line-height:1.5;
}

.hrp-login-help{
 margin:0;
 padding-top:20px;
 padding-bottom:24px;
 border-top:1px solid #eef3f7;
 color:var(--hrpl-muted);
 font-size:14px;
 line-height:1.6;
 text-align:center;
}
.hrp-login-help strong{display:block;color:var(--hrpl-navy);font-weight:700}

.hrp-login-secure{
 display:flex;
 align-items:center;
 justify-content:center;
 gap:12px;
 margin:0;
 padding-top:18px;
 padding-bottom:18px;
 border-top:1px solid #eef3f7;
 background:#f7fafc;
 text-align:left;
}
.hrp-login-secure svg{flex:0 0 auto;width:21px;height:21px;fill:#2d6791}
.hrp-login-secure strong{display:block;color:var(--hrpl-navy);font-size:14px}
.hrp-login-secure small{display:block;margin-top:2px;color:var(--hrpl-muted);font-size:12.5px}

/* ==================================================== right-hand tagline */
.hrp-login-tagline{
 align-self:end;
 margin:0;
 padding-bottom:8px;
 color:#8fa8bd;
 font-size:12.5px;
 font-weight:700;
 letter-spacing:.17em;
 text-align:right;
 text-transform:uppercase;
}
.hrp-login-tagline::after{
 content:"";
 display:block;
 width:52px;height:3px;
 margin:10px 0 0 auto;
 border-radius:2px;
 background:var(--hrpl-red);
}

/* ================================================================= footer */
.hrp-login-foot{
 position:relative;
 z-index:1;
 display:flex;
 flex-wrap:wrap;
 align-items:flex-end;
 justify-content:space-between;
 gap:10px 24px;
 width:100%;
 max-width:1560px;
 margin:0 auto;
 padding:18px 0 24px;
 border-top:1px solid #dfe9f1;
 color:var(--hrpl-muted);
 font-size:12.5px;
}
.hrp-login-foot strong{color:var(--hrpl-navy);font-weight:700}
/* The separator is drawn, not typed, so the phone layout can drop it and put
 * the two halves on their own lines without touching the markup. */
.hrp-login-foot em{font-style:normal;color:#8095a6}
.hrp-login-foot em::before{content:"|";margin:0 8px;color:#c3d2dd}
.hrp-login-foot-app{color:#8095a6}
.hrp-login-foot small{display:block;margin-top:5px;font-size:12px}

/* ============================================================ responsive */
/* One column below the point where the intro and the card stop fitting side
 * by side. The card leads, because signing in is why anyone is here. */
@media (max-width:1080px){
 .hrp-login-grid{
  grid-template-columns:minmax(0,486px);
  justify-content:center;
  gap:36px;
  padding-top:32px;
 }
 .hrp-login-intro,.hrp-login-card,.hrp-login-tagline{grid-column:1;grid-row:auto}
 .hrp-login-card{order:1}
 .hrp-login-intro{order:2;max-width:none;text-align:center}
 .hrp-login-eyebrow{padding-bottom:14px}
 .hrp-login-eyebrow::after{left:50%;transform:translateX(-50%)}
 .hrp-login-lede{margin-inline:auto}
 .hrp-login-points li{text-align:left}
 .hrp-login-tagline{order:3;text-align:center}
 .hrp-login-tagline::after{margin-inline:auto}
 .hrp-login-mark{transform:translate(78%,-50%);opacity:.05}
}

@media (max-width:560px){
 .hrp-login-shell{padding-inline:14px}
 .hrp-login-card h1{font-size:32px}
 .hrp-login-sub{font-size:15px}

 /* On a phone the card is the whole page. The introduction and the tagline
  * are desktop framing — worth reading beside the form, but below it they are
  * just a long scroll past the thing the visitor came to do, so they go. */
 .hrp-login-intro,.hrp-login-tagline{display:none}

 /* Footer centres and stacks: name, then discipline, then a short rule. */
 .hrp-login-foot{
  flex-direction:column;
  align-items:center;
  gap:0;
  padding-bottom:30px;
  border-top:0;
  text-align:center;
 }
 .hrp-login-foot-id{display:flex;flex-direction:column;gap:3px}
 .hrp-login-foot em::before{display:none}
 .hrp-login-foot-app{display:none}
 .hrp-login-foot small{margin-top:12px;color:#9db0be}
 .hrp-login-foot::after{
  content:"";
  width:46px;height:3px;
  margin-top:14px;
  border-radius:2px;
  background:var(--hrpl-red);
 }
}

/* Nothing here is worth printing, and the login page is not a record. */
@media print{
 .hrp-login-mark,.hrp-login-intro,.hrp-login-tagline{display:none}
 .hrp-login-card{box-shadow:none}
}
/* Password reset (17 September 2026): the forgotten-password link on the sign-in
   card, and the confirmation shown after set-password.php redirects back. */
.hrp-login-help .hrp-login-forgot{display:inline-block;margin:2px 6px 2px 0;color:#ed3d43;font-weight:800;text-decoration:none}
.hrp-login-help .hrp-login-forgot:hover{text-decoration:underline}
.hrp-login-reset-ok{display:flex;align-items:center;gap:9px;margin:4px 0 18px;padding:12px 14px;border:1px solid #c6e6d3;border-radius:10px;background:#f2fbf6;color:#18663c;font-size:12.5px;font-weight:700;line-height:1.45;text-align:left}
.hrp-login-reset-ok svg{flex:0 0 auto;width:17px;height:17px;fill:#2f9e63}
