.sadmin-login-page {
  --login-ink: #102e38;
  --login-muted: #758394;
  --login-card: rgba(255, 255, 255, 0.94);
  --login-line: #d9dfe7;
  --login-field: #f8fafc;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  color: var(--login-ink);
  background: #edf4f4;
  font-family: Arial, "Segoe UI", sans-serif;
}
html[data-theme="dark"] .sadmin-login-page {
  --login-ink: #edf5f1;
  --login-muted: #a4b9bb;
  --login-card: rgba(16, 31, 36, 0.95);
  --login-line: #33474e;
  --login-field: #15272d;
  background: #0b171c;
}
.login-scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, #f3fbf9dd 0%, #eff6f6aa 40%, #eff6f433 80%),
    url("assets/login-hospital.png") center/cover no-repeat;
  pointer-events: none;
}
html[data-theme="dark"] .login-scene {
  background-image:
    linear-gradient(90deg, #0b171cef, #0b171cc9 55%, #0b171c99),
    url("assets/login-hospital.png");
}
.login-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 43%;
  min-height: 280px;
  z-index: -1;
  pointer-events: none;
}
.login-layout {
  max-width: 1530px;
  width: 84%;
  min-height: 100svh;
  margin: 0 auto;
  padding: 70px 0 100px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(45px, 8vw, 160px);
  align-items: center;
  position: relative;
}
.login-story {
  align-self: start;
  padding-top: 0;
}
.story-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  color: var(--login-muted);
  font-size: 17px;
}
.story-brand:hover {
  text-decoration: none;
  color: var(--login-muted);
}
.story-brand img {
  width: 270px;
  height: auto;
}
.login-story h1 {
  font-size: clamp(38px, 3.15vw, 58px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin: 55px 0 18px;
  color: #103c37;
}
.login-story h1 span {
  color: #7b9d77;
  white-space: nowrap;
}
html[data-theme="dark"] .login-story h1 {
  color: #edf5f1;
}
html[data-theme="dark"] .login-story h1 span {
  color: #9fca9e;
}
.story-intro {
  font-size: 21px;
  line-height: 1.55;
  color: var(--login-muted);
  margin: 0 0 28px;
}
.login-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 25px;
  padding: 0;
  margin: 0;
}
.login-features li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  white-space: nowrap;
}
.feature-icon {
  height: 43px;
  width: 43px;
  flex: 0 0 43px;
  border-radius: 12px;
  background: #e2f1eaaa;
  color: #195c46;
  display: grid;
  place-items: center;
}
.feature-icon svg {
  width: 25px;
  height: 25px;
}
html[data-theme="dark"] .feature-icon {
  background: #234b3d;
  color: #8bd9a7;
}
.login-story blockquote {
  font-size: 18px;
  line-height: 1.5;
  font-style: italic;
  color: var(--login-muted);
  border-left: 2px solid #76a887;
  padding: 0 0 0 22px;
  margin: 27px 0 55px 36px;
}
.login-card {
  width: 100%;
  background: var(--login-card);
  border: 1px solid var(--login-line);
  border-radius: 18px;
  padding: 38px 48px 28px;
  box-shadow: 0 22px 70px #243f5210;
  backdrop-filter: blur(14px);
}
.login-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.card-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.card-shield {
  width: 44px;
  height: auto;
}
.card-wordmark {
  width: 170px;
  max-width: 100%;
  height: auto;
}
.admin-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  color: #236843;
  background: #eaf5ed;
  border-radius: 30px;
  padding: 12px 17px;
  font-size: 12px;
}
.admin-badge svg {
  height: 20px;
  width: 20px;
}
html[data-theme="dark"] .admin-badge {
  background: #214538;
  color: #a3e1b8;
}
.login-card h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.7px;
  margin: 0 0 8px;
  color: var(--login-ink);
}
.login-intro {
  font-size: 16px;
  color: var(--login-muted);
  margin-bottom: 28px;
}
.login-card form > label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 8px;
}
.login-input {
  position: relative;
  margin-bottom: 20px;
}
.login-card .login-input input {
  height: 55px;
  padding: 12px 47px 12px 55px;
  border-radius: 9px;
  border: 1px solid var(--login-line);
  background: var(--login-field);
  color: var(--login-ink);
  font-size: 16px;
  box-shadow: inset 0 1px 3px #152b3910;
}
.login-card .login-input input::placeholder {
  color: var(--login-muted);
  opacity: 1;
}
.login-card .login-input input:focus {
  border-color: #659b7b;
  box-shadow: 0 0 0 3px #659b7b22;
}
.input-icon {
  position: absolute;
  left: 17px;
  top: 16px;
  display: flex;
  pointer-events: none;
}
.input-icon svg {
  width: 23px;
  height: 23px;
}
.login-card .sa-eye {
  right: 9px;
  width: 34px;
  color: var(--login-ink);
}
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: -3px 0 25px;
  font-size: 14px;
}
.remember-label {
  display: flex;
  gap: 11px;
  align-items: center;
  cursor: pointer;
}
.remember-label input {
  appearance: auto;
  width: 19px;
  height: 19px;
  accent-color: #338453;
  flex-shrink: 0;
}
.forgot-password {
  border: 0;
  padding: 0;
  background: transparent;
  color: #227045;
  font: inherit;
}
.forgot-password:hover {
  text-decoration: underline;
}
html[data-theme="dark"] .forgot-password {
  color: #a3e1b8;
}
.login-card .login-submit {
  width: 100%;
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-radius: 9px;
  background: linear-gradient(115deg, #235d49, #27604b);
  border: 1px solid #45775f;
  color: white;
  font-size: 16px;
  font-weight: 600;
  box-shadow: inset 0 1px 3px #ffffff20;
}
.login-card .login-submit:hover {
  background: #1b4d3a;
}
.login-submit svg {
  width: 21px;
  height: 21px;
}
.login-submit:disabled {
  opacity: 0.75;
}
.login-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--login-muted);
  font-size: 14px;
  padding-top: 27px;
  margin-top: 27px;
  border-top: 1px solid var(--login-line);
}
.login-trust svg {
  width: 18px;
  height: 18px;
}
.login-trust b {
  margin: 0 9px;
  font-weight: 400;
}
.login-mode {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
}
.login-mode .theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 8px;
  display: grid;
  place-items: center;
  background: var(--login-card);
  color: var(--login-ink);
  border: 1px solid var(--login-line);
}
.login-mode .theme-toggle span {
  display: none;
}
.login-mode svg {
  width: 20px;
  height: 20px;
}
.care-signature {
  position: absolute;
  bottom: 37px;
  left: -4vw;
  color: #fff;
  font:
    italic 34px "Segoe Script",
    "Brush Script MT",
    cursive;
  transform: rotate(-7deg);
  border-bottom: 1px solid #d3e8da;
  padding: 0 14px 8px;
}
.login-footer-note {
  position: absolute;
  right: -5vw;
  bottom: 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--login-muted);
  margin: 0;
}
.login-footer-note span {
  display: block;
  width: 65px;
  height: 2px;
  background: #72a784;
  margin: 12px auto 0;
}
.sadmin-login-page :focus-visible {
  outline: 3px solid #78a88a;
  outline-offset: 4px;
}
.login-card .sa-message {
  padding: 12px;
  border-radius: 8px;
  background: #b9504414;
  color: #b23f35;
  font-size: 14px;
}
.sadmin-login-page .modal-content {
  background: var(--login-card);
  color: var(--login-ink);
}
@media (min-width: 1600px) {
  .login-layout {
    padding-top: 64px;
    padding-bottom: 100px;
  }
  .login-card {
    padding: 42px 56px 30px;
  }
  .login-card-header {
    margin-bottom: 35px;
  }
  .card-wordmark {
    width: 180px;
  }
  .card-shield {
    width: 50px;
  }
  .login-story h1 {
    margin-top: 56px;
  }
}
@media (max-width: 1250px) {
  .login-layout {
    width: 90%;
    gap: 40px;
  }
  .login-card {
    padding: 30px;
  }
  .login-card-header {
    gap: 12px;
  }
  .card-wordmark {
    width: 130px;
  }
  .card-shield {
    width: 34px;
  }
  .admin-badge {
    font-size: 11px;
    padding: 9px 11px;
  }
  .login-story h1 {
    font-size: 40px;
  }
  .story-intro {
    font-size: 18px;
  }
  .login-features {
    gap: 14px;
  }
  .login-features li {
    gap: 9px;
    font-size: 12px;
  }
  .story-brand img {
    width: 240px;
  }
  .login-footer-note {
    right: 0;
  }
}
@media (max-width: 960px) {
  .login-layout {
    width: 90%;
    max-width: 640px;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 50px 0 110px;
  }
  .login-story {
    display: none;
  }
  .login-card {
    padding: 35px;
    align-self: center;
  }
  .login-layout {
    align-content: center;
  }
  .card-wordmark {
    width: 170px;
  }
  .card-shield {
    width: 44px;
  }
  .admin-badge {
    padding: 10px 13px;
    font-size: 12px;
  }
  .care-signature {
    font-size: 25px;
    bottom: 34px;
    left: 0;
  }
  .login-footer-note {
    display: none;
  }
  .login-waves {
    height: 35%;
    min-height: 180px;
  }
}
@media (max-width: 480px) {
  .login-layout {
    width: 92%;
    padding-top: 65px;
    padding-bottom: 90px;
  }
  .login-card {
    padding: 26px 21px;
    border-radius: 15px;
  }
  .login-card-header {
    flex-wrap: wrap;
    margin-bottom: 25px;
    gap: 17px;
  }
  .admin-badge {
    padding: 7px 12px;
    font-size: 11px;
  }
  .admin-badge svg {
    width: 16px;
    height: 16px;
  }
  .card-wordmark {
    width: 160px;
  }
  .card-shield {
    width: 36px;
  }
  .login-card h2 {
    font-size: 29px;
  }
  .login-intro {
    font-size: 14px;
    line-height: 1.5;
  }
  .login-options {
    font-size: 12px;
    gap: 6px;
  }
  .remember-label {
    gap: 7px;
  }
  .login-card .login-input input {
    font-size: 14px;
  }
  .login-trust {
    font-size: 12px;
  }
  .login-trust b {
    margin: 0 6px;
  }
  .care-signature {
    font-size: 23px;
    left: 15px;
  }
  .login-scene {
    background-position: 70% center;
  }
} /* Reference proportions on wide screens; compact layouts keep the centered card. */
@media (min-width: 1500px) {
  .login-layout {
    width: 79%;
    margin-left: 8.7%;
    margin-right: auto;
    grid-template-columns: 1fr 1.14fr;
    gap: 8vw;
  }
  .login-features {
    grid-template-columns: 240px 1fr;
    gap: 15px 25px;
  }
}
html[data-theme="dark"] .login-card .sa-message {
  color: #ffb4ab;
}
.story-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}
.story-brand .story-shield {
  width: 62px;
  height: auto;
  flex-shrink: 0;
}
.story-brand .story-wordmark {
  width: 270px;
  max-width: calc(100% - 74px);
  height: auto;
}
@media (max-width: 1250px) {
  .story-brand .story-shield {
    width: 54px;
  }
  .story-brand .story-wordmark {
    width: 240px;
    max-width: calc(100% - 66px);
  }
}
.story-brand {
  max-width: 100%;
  align-items: center;
  text-align: center;
}
.story-logo {
  justify-content: center;
}
.story-brand > span:last-child {
  width: 100%;
  text-align: center;
  margin-left:85px
}
