/* Evvendory v19 — owner-supplied logo, original pixels, no redraw. */
body.ev-auth-v19-body {
  background: linear-gradient(130deg, #eaf0fd 0%, #f6f8fd 58%, #f3f2f2 100%);
  min-height: 100vh;
  color: #1b263b;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}
.ev-auth-v19-body .ev-auth-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 20px;
}
.ev-auth-v19-body .ev-auth-card {
  width: min(100%, 648px);
  background: #fff;
  border-radius: 26px;
  padding: 39px clamp(24px, 5vw, 58px) 48px;
  box-shadow: 0 18px 65px rgba(28, 44, 68, .09);
}
.ev-auth-logo-link { display: block; width: 100%; max-width: 460px; margin: 0 auto 18px; }
.ev-auth-logo-link:focus-visible, .ev-auth-back-link:focus-visible,
.ev-auth-reveal:focus-visible, .ev-auth-submit:focus-visible { outline: 3px solid #145fd9; outline-offset: 4px; }
.ev-auth-logo { display:block; width:100%; height:auto; }
.ev-auth-rainbow { display:flex; width:100%; height:5px; border-radius:1px; overflow:hidden; margin:0 0 27px; }
.ev-auth-rainbow span { flex:1; }
.ev-auth-rainbow span:nth-child(1) { background:#0967d9; }
.ev-auth-rainbow span:nth-child(2) { background:#58c63b; }
.ev-auth-rainbow span:nth-child(3) { background:#ffd93a; }
.ev-auth-rainbow span:nth-child(4) { background:#ff842c; }
.ev-auth-rainbow span:nth-child(5) { background:#ef1932; }
.ev-auth-v19-body .ev-auth-card h1 {
  text-align:center;
  font-size:clamp(23px,3.5vw,29px);
  line-height:1.25;
  letter-spacing:-.5px;
  color:#1c2639;
  margin:0 0 17px;
  font-weight:800;
}
.ev-auth-intro { margin:0 0 33px; text-align:center; color:#66758d; font-size:14px; line-height:1.7; }
.ev-auth-form { display:flex; flex-direction:column; gap:24px; }
.ev-auth-field { display:flex; flex-direction:column; gap:9px; }
.ev-auth-field label { color:#253149; font-size:15px; font-weight:750; }
.ev-auth-password-input { display:flex; align-items:center; border:2px solid #d1dbe8; border-radius:9px; height:65px; padding:0 8px 0 15px; background:#fff; transition:border-color .15s; }
.ev-auth-password-input:focus-within { border-color:#0967d9; box-shadow:0 0 0 3px rgba(9,103,217,.1); }
.ev-auth-password-input input, .ev-auth-v19-body .ev-auth-password-input input {
  width:100%; min-width:0; border:0; background:transparent; height:100%;
  padding:0; outline:0; box-shadow:none; color:#1b263b;
  font-family:inherit; font-size:15px; letter-spacing:normal;
}
.ev-auth-password-input input::placeholder { color:#8d9bb1; }
.ev-auth-reveal { width:44px; height:44px; display:flex; align-items:center; justify-content:center; flex-shrink:0; cursor:pointer; background:transparent; border:0; border-radius:7px; color:#8290a6; }
.ev-auth-reveal:hover { background:#f2f6fc; color:#2563eb; }
.ev-auth-password-hint { color:#718098; font-size:12px; margin:2px 0 -5px; }
.ev-auth-v19-body .ev-auth-submit {
  display:flex; align-items:center; justify-content:center; margin:7px 0 0;
  border:0; border-radius:10px; width:100%; min-height:65px;
  background:#126bdd; color:#fff; font-family:inherit; font-size:16px;
  font-weight:750; cursor:pointer; text-decoration:none;
  transition:background-color .15s ease, transform .15s ease;
}
.ev-auth-v19-body .ev-auth-submit:hover { background:#0759bd; color:#fff; }
.ev-auth-back-link { margin:35px auto 0; width:fit-content; display:block; font-size:14px; font-weight:750; color:#0967d9; text-decoration:none; }
.ev-auth-back-link:hover { color:#004bb5; text-decoration:underline; }
.ev-auth-copyright { margin:27px 0 0; color:#8795ac; font-size:12px; text-align:center; }
.ev-auth-alert { padding:13px 15px; border-radius:10px; line-height:1.5; margin-bottom:18px; font-size:14px; }
.ev-auth-alert-error { border:1px solid #fecaca; background:#fef2f2; color:#a91b1b; }
.ev-auth-compare-error { color:#b91c1c; font-size:12px; margin:0; }
.ev-auth-status-icon { margin:15px auto 20px; display:grid; place-items:center; width:58px; height:58px; border-radius:50%; font-size:31px; font-weight:800; }
.ev-auth-status-ok { background:#dcfce7; color:#166534; }
.ev-auth-status-expired { background:#fef3c7; color:#9a3412; }
.ev-auth-v19-body .ev-auth-status-button { margin:23px auto 0; }
.ev-auth-skip-link { position:absolute; top:-90px; left:14px; background:#fff; padding:12px; z-index:20000; }
.ev-auth-skip-link:focus { top:10px; }

/* Legacy WP core reset URL fallback: replace the WordPress logo if the custom page isn't reachable. */
body.login.login-action-rp, body.login.login-action-resetpass { background:#f2f5fd; }
body.login.login-action-rp #login, body.login.login-action-resetpass #login { padding-top:5vh; }
body.login.login-action-rp h1 a, body.login.login-action-resetpass h1 a {
  display:block;
  width:285px; max-width:100%; height:195px;
  background:url('../images/evvendory-auth-logo.png') center / contain no-repeat;
}
body.login.login-action-rp #loginform, body.login.login-action-rp #resetpassform,
body.login.login-action-resetpass #loginform, body.login.login-action-resetpass #resetpassform { border-radius:16px; box-shadow:0 10px 40px rgba(20,45,80,.08); }
body.login.login-action-resetpass .button-primary, body.login.login-action-rp .button-primary { background:#126bdd; border-color:#126bdd; }

/* Existing sign-in / forgot / sign-up page keeps its functionality but gains the approved logo. */
.ev-auth-inline-page { background:#f3f6fb !important; }
.ev-auth-inline-panel { max-width:500px; margin:auto; }
.ev-auth-inline-brand { text-align:center; max-width:280px; margin:0 auto 19px; }
.ev-auth-inline-brand a { display:block; }
.ev-auth-inline-brand img { width:100%; height:auto; display:block; }
.ev-auth-inline-panel .ev-auth-rainbow { margin-bottom:24px; height:4px; }

@media (max-width:600px) {
  .ev-auth-v19-body .ev-auth-main { padding:13px 12px 20px; justify-content:flex-start; }
  .ev-auth-v19-body .ev-auth-card { padding:22px 22px 38px; border-radius:17px; }
  .ev-auth-logo-link { max-width:270px; margin-bottom:15px; }
  .ev-auth-rainbow { margin-bottom:25px; }
  .ev-auth-password-input { height:58px; }
  .ev-auth-v19-body .ev-auth-submit { min-height:57px; }
  .ev-auth-back-link { margin-top:25px; }
  .ev-auth-inline-panel { padding:24px !important; }
}
@media (prefers-reduced-motion:reduce) {
  .ev-auth-v19-body .ev-auth-submit, .ev-auth-password-input { transition:none; }
}
