/* MedicalSoft Login — extracted from index.php 2026-06-03
 * Update with: edit this file directly.
 * Source of truth for all ms-login-* styles.
 */

.ms-login-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  width: 100vw;
  grid-template-columns: minmax(390px, 40vw) minmax(0, 1fr);
  background:
    radial-gradient(circle at 12% 18%, rgba(26, 153, 251, 0.12), transparent 28%),
    radial-gradient(circle at 96% 84%, rgba(41, 246, 193, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
  color: #244255;
  overflow: hidden;
}

.ms-login-form-panel {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 60px);
  background: rgba(255, 255, 255, 0.88);
  position: relative;
  z-index: 2;
}

.ms-login-card {
  width: min(100%, 410px);
}

.ms-login-logo {
  width: min(64%, 270px);
  height: auto;
  display: inline-block;
}

.ms-login-heading {
  text-align: center;
  margin-bottom: clamp(22px, 3vh, 34px);
}

.ms-login-heading span {
  display: block;
  margin-bottom: 10px;
  color: #1A99FB;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ms-login-heading h1 {
  margin: 0;
  color: #244255;
  font-size: clamp(1.5rem, 1.8vw, 2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}

.ms-login-heading p {
  margin: 14px 0 0;
  color: #57606A;
  font-size: 1rem;
  line-height: 1.45;
}

.ms-login-form,
.ms-login-secondary-actions {
  display: grid;
  gap: 16px;
}

.ms-login-field {
  display: grid;
  gap: 8px;
}

.ms-login-label {
  margin: 0;
  color: #244255;
  font-size: 0.95rem;
  font-weight: 750;
}

.ms-login-input,
.ms-login-password,
.ms-login-password .p-password-input {
  width: 100% !important;
}

.ms-login-input {
  height: 54px;
  border: 1px solid #C4CDD5 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #244255 !important;
  font-size: 1rem !important;
  box-shadow: 0 10px 28px rgba(36, 66, 85, 0.06);
}

.ms-login-input:focus {
  border-color: #1A99FB !important;
  box-shadow: 0 0 0 4px rgba(26, 153, 251, 0.16) !important;
}

.ms-login-action {
  width: 100%;
  min-height: 54px;
  border-radius: 14px !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  justify-content: center;
  letter-spacing: 0;
}

.ms-login-action-primary {
  margin-top: 4px;
  border-color: #1A99FB !important;
  background: #1A99FB !important;
  color: #ffffff !important;
  box-shadow: 0 16px 36px rgba(26, 153, 251, 0.28);
}

.ms-login-action-secondary {
  border-color: rgba(36, 66, 85, 0.16) !important;
  background: #ffffff !important;
  color: #244255 !important;
  box-shadow: 0 10px 24px rgba(36, 66, 85, 0.08);
}

.ms-login-secondary-actions {
  margin-top: 18px;
}

.ms-login-forgot {
  width: fit-content;
  margin: 4px auto 0;
  border: 0;
  background: transparent;
  color: #244255;
  font-weight: 750;
  padding: 6px 8px;
  cursor: pointer;
}

.ms-login-forgot:hover,
.ms-login-forgot:focus {
  color: #1A99FB;
  outline: none;
}

.ms-login-media-panel {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(36, 66, 85, 0.95), rgba(26, 153, 251, 0.52)),
    #244255;
}

.ms-login-media-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(245, 247, 250, 0.18), transparent 26%),
    radial-gradient(circle at 76% 16%, rgba(41, 246, 193, 0.2), transparent 34%);
}

.ms-login-gallery,
.ms-login-gallery .p-galleria,
.ms-login-gallery .p-galleria-content,
.ms-login-gallery .p-galleria-item-wrapper,
.ms-login-gallery .p-galleria-item-container,
.ms-login-gallery .p-galleria-item {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100svh;
}

.ms-login-gallery-item {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(26px, 4vw, 62px);
  overflow: hidden;
}

.ms-login-gallery-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(28px) saturate(1.08);
  transform: scale(1.12);
  opacity: 0.44;
}

.ms-login-gallery-image {
  position: relative;
  z-index: 1;
  width: min(68%, 620px);
  height: min(86vh, 820px);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: clamp(18px, 2vw, 30px);
  box-shadow: 0 34px 90px rgba(13, 17, 23, 0.28);
}

.ms-login-gallery .p-galleria-indicators {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: clamp(24px, 4vh, 44px);
  padding: 0;
}

.ms-login-gallery .p-galleria-indicator button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
}

.ms-login-gallery .p-galleria-indicator.p-highlight button {
  width: 28px;
  background: #29F6C1;
}

/* --- Responsive: tablet (max 991.98px) --- */
@media (max-width: 991.98px) {
  .ms-login-page {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .ms-login-form-panel {
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(24px, 7vw, 56px);
    background:
      radial-gradient(circle at 50% 0%, rgba(26, 153, 251, 0.12), transparent 34%),
      linear-gradient(180deg, #ffffff, #f5f7fa);
  }

  .ms-login-media-panel {
    display: none;
  }

  .ms-login-card {
    width: min(100%, 420px);
  }

  .ms-login-logo {
    width: min(58%, 230px);
  }
}

/* --- Responsive: mobile large (max 480px) --- */
@media (max-width: 480px) {
  .ms-login-form-panel {
    align-items: center;
    padding: 22px;
  }

  .ms-login-heading {
    margin-bottom: 24px;
  }

  .ms-login-heading h1 {
    font-size: 1.6rem;
  }

  .ms-login-input,
  .ms-login-action {
    min-height: 50px;
  }

  #particles-js-container {
    transform: scale(0.8);
  }
}

/* --- Responsive: mobile small + short viewport (max 480px / max-height 700px) --- */
@media (max-width: 480px) and (max-height: 700px) {
  .ms-login-form-panel {
    align-items: flex-start;
    padding: 12px 22px;
  }

  .ms-login-brand .text-center {
    margin-bottom: 0.75rem !important;
  }

  .ms-login-logo {
    width: min(48%, 175px);
  }

  .ms-login-heading {
    margin-bottom: 14px;
  }

  .ms-login-heading span {
    margin-bottom: 6px;
    font-size: 0.75rem;
  }

  .ms-login-heading h1 {
    font-size: 1.34rem;
    line-height: 1.08;
  }

  .ms-login-heading p {
    margin-top: 8px;
    font-size: 0.92rem;
  }

  .ms-login-form,
  .ms-login-secondary-actions {
    gap: 10px;
  }

  .ms-login-field {
    gap: 6px;
  }

  .ms-login-input,
  .ms-login-action {
    height: 46px;
    min-height: 46px;
  }

  .ms-login-secondary-actions {
    margin-top: 10px;
  }

  .ms-login-forgot {
    margin-top: 0;
    padding-block: 4px;
  }
}

/* --- Responsive: mobile 375px touch-friendly additions --- */
@media (max-width: 375px) {
  .ms-login-page {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

  .ms-login-form-panel {
    width: 100%;
    padding: 16px;
  }

  .ms-login-card {
    max-width: none;
    width: 100%;
  }

  .ms-login-input,
  .ms-login-password .p-password-input {
    font-size: 16px !important;
    height: 48px;
    min-height: 48px;
  }

  .ms-login-action {
    font-size: 16px !important;
    min-height: 48px;
    touch-action: manipulation;
  }
}
