/* Login-only styles: shared ERP screens retain their existing layout. */
body.auth-modern {
  margin: 0; padding: 48px 32px 24px; min-height: 100vh; min-height: 100svh;
  box-sizing: border-box; display: flex; flex-direction: column; align-items: center;
  background: #f3f5f7; color: #202b32; font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}
.auth-modern *, .auth-modern *::before, .auth-modern *::after { box-sizing: border-box; letter-spacing: 0; }
.auth-modern .login-shell *, .auth-modern .auth-contact * { font-family: "Segoe UI", Arial, sans-serif; letter-spacing: 0; }
.auth-modern .login-shell {
  display: grid; grid-template-columns: 1.04fr 1fr; width: 100%; max-width: 1200px;
  min-height: 620px; margin: auto 0; background: #fff; border: 1px solid #e0e7e4;
  border-radius: 20px; box-shadow: 0 24px 64px #183e3214; overflow: hidden;
}
.auth-modern .login-visual { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 52px 48px; background: linear-gradient(145deg, #092638 0%, #104d4b 58%, #08783b 100%); color: #fff; }
.auth-modern .login-brand-row { display: flex; justify-content: flex-start; align-items: center; gap: 16px; margin: 0; }
.auth-modern .login-brand-row img { width: 66px; height: 66px; flex: 0 0 66px; object-fit: contain; padding: 5px; background: #fff; border: 0; border-radius: 12px; box-shadow: none; }
.auth-modern .login-brand-row div { min-width: 0; }
.auth-modern .login-brand-row h1 { font-size: 26px; line-height: 1.2; font-weight: 750; margin: 0 0 7px; max-width: none; color: #fff; overflow-wrap: anywhere; }
.auth-modern .login-brand-row span { display: block; font-size: 12px; font-weight: 600; color: #c2d9d5; text-transform: uppercase; line-height: 1.5; }
.auth-modern .login-form-panel { display: flex; align-items: center; justify-content: center; padding: 44px 52px; background: #fff; border: 0; border-radius: 0; box-shadow: none; }
.auth-modern .auth-portal-label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: #f3df9c; text-transform: uppercase; margin-bottom: 22px; }
.auth-portal-label::before { content: ''; width: 7px; height: 7px; background: #f3df9c; border-radius: 50%; }
.auth-modern .auth-brand-story h2 { margin: 0; font-size: 40px; font-weight: 700; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.auth-modern .auth-brand-story p { margin: 22px 0 0; font-size: 16px; font-weight: 400; line-height: 1.7; color: #d2e4df; }
.auth-modern .auth-brand-footer { display: flex; flex-wrap: wrap; gap: 14px 24px; padding-top: 24px; border-top: 1px solid #ffffff30; font-size: 12px; font-weight: 600; color: #e4f0ea; }
.auth-brand-footer span { display: flex; gap: 8px; align-items: center; }
.auth-brand-footer span::before { content: ''; width: 5px; height: 5px; background: #f3df9c; border-radius: 50%; }
.auth-modern .login-form-inner { width: 100%; max-width: 410px; margin: 0; }
.auth-modern .login-kicker { display: block; margin: 0 0 12px; color: #8a6530; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.auth-modern .login-form-inner h2 { margin: 0; font-size: 34px; line-height: 1.2; font-weight: 700; color: #092638; overflow-wrap: anywhere; }
.auth-modern .login-form-inner p { margin: 8px 0 20px; color: #68747d; font-size: 14px; line-height: 1.5; max-width: none; }
.auth-modern form { display: grid; gap: 14px; margin: 0; }
.auth-modern .login-form-inner label { display: grid; gap: 7px; margin: 0; color: #36434b; font-size: 13px; font-weight: 600; }
.auth-modern .login-form-inner input:not([type="hidden"]) { display: block; width: 100%; height: 46px; min-height: 46px; padding: 10px 12px; border: 1px solid #d1dbe1; border-radius: 8px; background: #f5f8fc; color: #202b32; font: 400 15px "Segoe UI", Arial, sans-serif; box-shadow: none; }
.auth-modern input::placeholder { color: #7b858c; opacity: 1; }
.auth-modern .login-form-inner input:focus { outline: 3px solid #d7e9e2; outline-offset: 1px; border-color: #17624d; box-shadow: none; }
.auth-modern .login-form-inner button[type="submit"] { width: 100%; min-height: 46px; margin: 2px 0 0; padding: 11px 14px; border: 1px solid #092638; border-radius: 8px; background: #092638; color: #fff; font-size: 14px; font-weight: 650; box-shadow: 0 5px 12px #09263812; cursor: pointer; }
.auth-modern .login-form-inner button[type="submit"]:hover { background: #104c3b; transform: none; }
.auth-modern button:focus-visible, .auth-modern a:focus-visible { outline: 3px solid #b99b55; outline-offset: 3px; }
.auth-modern .login-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 20px; }
.auth-modern .login-links a { font-size: 13px; font-weight: 600; color: #17624d; text-decoration: none; }
.auth-modern .login-links a:hover { text-decoration: underline; }
.auth-modern .login-protected { margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid #edf0f2; color: #68747d; text-align: center; font-size: 12px; line-height: 1.5; }
.auth-modern .auth-contact { width: 100%; max-width: none; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid #ffffff24; text-align: left; font-size: 12px; line-height: 1.7; color: #d2e4df; }
.auth-contact div { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; margin-top: 8px; }
.auth-contact div:first-child { margin-top: 0; }
.auth-contact span { display: block; overflow-wrap: anywhere; }
.auth-contact b { font-weight: 600; color: #f3df9c; }
.auth-modern .login-form-inner label:focus-within { color: #17624d; }
.auth-modern .login-form-inner input:not([type="hidden"]):hover { border-color: #95b6a8; }
.auth-modern .login-form-inner input:not([type="hidden"]):focus { background: #fff; }
.auth-modern .login-kicker { border-left: 3px solid #d4b365; padding-left: 10px; }
.auth-password { position: relative; display: block; }
.auth-modern .auth-password input { padding-right: 68px !important; }
.auth-modern .login-form-inner .auth-password-toggle { position: absolute; right: 4px; top: 4px; width: 56px; height: 44px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 4px; background: transparent; color: #17624d; font-size: 12px; font-weight: 650; box-shadow: none; cursor: pointer; }
.auth-modern .login-form-inner .auth-password-toggle:hover { background: #edf4f1; transform: none; }
.auth-message { padding: 12px; margin: 0 0 20px; border: 1px solid #c2ded0; border-radius: 6px; background: #f0f8f3; color: #22543d; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-message-error { background: #fff2f2; border-color: #efc2c2; color: #9b3030; }
@media (max-width: 1000px) {
  .auth-modern .login-visual { padding: 36px 30px; }
  .auth-modern .login-form-panel { padding: 36px 30px; }
  .auth-modern .auth-brand-story h2 { font-size: 34px; }
}
@media (max-width: 760px) {
  .auth-modern .login-shell { grid-template-columns: 1fr; max-width: 480px; min-height: 0; border-radius: 16px; }
  .auth-modern .login-visual { padding: 24px; gap: 22px; min-height: 0; justify-content: flex-start; }
  .auth-modern .auth-brand-story h2 { font-size: 26px; }
  .auth-modern .auth-brand-story p { display: none; }
  .auth-modern .auth-brand-footer { gap: 10px 16px; padding-top: 18px; }
  .auth-modern .auth-portal-label { margin-bottom: 10px; }
  .auth-modern .login-form-inner h2 { font-size: 28px; }
  body.auth-modern { padding: 28px 16px 20px; }
  .auth-modern .login-form-panel { padding: 26px 22px; }
  .auth-modern .login-brand-row { gap: 12px; margin-bottom: 0; }
  .auth-modern .login-brand-row h1 { font-size: 22px; }
  .auth-modern .login-brand-row img { width: 58px; height: 58px; flex-basis: 58px; }
}

/* A tighter desktop sign-in surface keeps the ERP entry screen focused. */
@media (min-width: 761px) {
  body.auth-modern {
    padding: 32px 24px 20px;
  }

  .auth-modern .login-shell {
    grid-template-columns: minmax(350px, 0.96fr) minmax(390px, 1.04fr);
    max-width: 1080px;
    min-height: 560px;
  }

  .auth-modern .login-visual {
    gap: 32px;
    padding: 38px 42px;
  }

  .auth-modern .auth-brand-story h2 {
    font-size: 34px;
  }

  .auth-modern .auth-brand-story p {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.6;
  }

  .auth-modern .auth-brand-footer {
    gap: 10px 18px;
    padding-top: 18px;
  }

  .auth-modern .auth-contact {
    margin-top: 14px;
    padding-top: 14px;
    line-height: 1.55;
  }

  .auth-contact div {
    gap: 10px;
    margin-top: 6px;
  }

  .auth-modern .login-form-panel {
    padding: 38px 46px;
  }

  .auth-modern .login-form-inner {
    max-width: 360px;
  }
}
