@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --login-bg: #1991c994;
  --login-surface: rgba(255, 255, 255, 0.92);
  --login-surface-soft: rgba(255, 255, 255, 0.14);
  --login-border: rgba(255, 255, 255, 0.26);
  --login-text: #f6fbff;
  --login-panel-text: #15374c;
  --login-panel-muted: #587588;
  --login-accent: #0f5d91;
  --login-accent-strong: #0a476f;
  --login-focus: rgba(15, 93, 145, 0.2);
  --login-shadow: 0 30px 70px rgba(6, 43, 67, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.login {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: var(--login-bg);
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--login-text);
}

body.login::before,
body.login::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
}

body.login::before {
  top: -140px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 70%);
}

body.login::after {
  right: -140px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(8, 68, 106, 0.26) 0%, rgba(8, 68, 106, 0) 72%);
}

.login_page {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1320px;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
}

.card_cluster {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 430px);
  align-items: stretch;
  width: min(100%, 1140px);
  animation: cluster-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card_cluster::before {
  content: "";
  position: absolute;
  inset: 24px 18px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(6, 43, 67, 0.18);
  backdrop-filter: blur(18px);
}

.brand_panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3vw, 30px);
  min-width: 0;
  padding: clamp(34px, 5vw, 54px);
  border-radius: 36px 0 0 36px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-right: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(8, 62, 97, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: brand-enter 0.8s ease both;
}

.svasthya_icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svasthya_icon img {
  width: clamp(230px, 30vw, 420px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 28px rgba(7, 41, 64, 0.18));
}

.svasthya_about {
  max-width: 100%;
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.svasthya_about h1 {
  margin: 0;
  color: var(--login-text);
  font-size: clamp(0.98rem, 0.45vw + 0.92rem, 1.22rem);
  line-height: 1.76;
  font-weight: 500;
}

.login_layout {
  position: relative;
  width: 100%;
  z-index: 1;
}

.login_wrapper {
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin-left: 0;
  animation: card-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login_form,
.login_content {
  position: static;
  width: 100%;
  height: 100%;
}

.login_content {
  display: flex;
  height: 100%;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.login_card {
  width: 100%;
  margin: 0;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 0 36px 36px 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-left: 0;
  background: var(--login-surface);
  box-shadow: var(--login-shadow);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.login_eyebrow {
  margin: 0;
  color: var(--login-accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.32em;
}

.login_header_mark {
  width: 112px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 93, 145, 0.95), rgba(15, 93, 145, 0.08));
}

.field_group {
  margin-bottom: 18px;
}

.field_label {
  display: block;
  margin-bottom: 8px;
  color: var(--login-panel-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.field_shell {
  position: relative;
}

.field_icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: #7da0b6;
  font-size: 1rem;
  pointer-events: none;
}

.login_content form input[type="text"],
.login_content form input[type="email"],
.login_content form input[type="password"] {
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 54px 0 50px;
  border: 1px solid rgba(15, 93, 145, 0.16);
  border-radius: 18px;
  background: rgba(248, 252, 255, 0.96);
  color: var(--login-panel-text);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.login_content form input[type="text"]::placeholder,
.login_content form input[type="email"]::placeholder,
.login_content form input[type="password"]::placeholder {
  color: var(--login-panel-muted);
  font-weight: 500;
}

.login_content form input[type="text"]:focus,
.login_content form input[type="email"]:focus,
.login_content form input[type="password"]:focus {
  border-color: rgba(15, 93, 145, 0.34);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--login-focus);
  outline: none;
}

.password_toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7b98ab;
  transform: translateY(-50%);
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.password_toggle:hover,
.password_toggle:focus-visible,
.password_toggle.is-active {
  color: var(--login-accent);
  background: rgba(15, 93, 145, 0.08);
  outline: none;
}

.password_toggle:active {
  transform: translateY(-50%) scale(0.96);
}

.form_row {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.remember_option {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--login-panel-text);
  font-size: 0.95rem;
  font-weight: 600;
  user-select: none;
}

.remember_option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(15, 93, 145, 0.34);
  border-radius: 6px;
  background: #ffffff;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.checkmark::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}

.remember_option:hover .checkmark {
  box-shadow: 0 0 0 4px rgba(15, 93, 145, 0.08);
}

.remember_option input:checked + .checkmark {
  border-color: var(--login-accent);
  background: var(--login-accent);
}

.remember_option input:checked + .checkmark::after {
  transform: rotate(45deg) scale(1);
}

.remember_text {
  color: var(--login-panel-text);
}

.login_button {
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f5d91 0%, #1991c9 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  box-shadow: 0 18px 28px rgba(15, 93, 145, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.login_button:hover,
.login_button:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 24px 34px rgba(15, 93, 145, 0.32);
  outline: none;
}

.login_button:active {
  transform: translateY(0);
}

a.hiddenanchor {
  display: none;
}

.animate {
  animation-duration: 0.5s;
  animation-timing-function: ease;
  animation-fill-mode: both;
}

@keyframes brand-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cluster-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .login_page {
    max-width: 860px;
  }

  .card_cluster {
    grid-template-columns: 1fr;
    width: min(100%, 760px);
  }

  .card_cluster::before {
    inset: 16px;
    border-radius: 34px;
  }

  .brand_panel {
    border-radius: 34px 34px 0 0;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: 0;
    text-align: center;
  }

  .login_card {
    border-radius: 0 0 34px 34px;
    border-left: 1px solid rgba(255, 255, 255, 0.42);
    border-top: 0;
    min-height: 0;
  }

  .svasthya_about h1 {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .login_page {
    padding: 18px;
    gap: 22px;
  }

  .card_cluster::before {
    inset: 10px;
    border-radius: 28px;
  }

  .brand_panel {
    padding: 26px 18px 22px;
    border-radius: 28px 28px 0 0;
  }

  .svasthya_icon img {
    width: min(68vw, 300px);
  }

  .svasthya_about {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .svasthya_about h1 {
    font-size: 0.98rem;
    line-height: 1.64;
  }

  .login_card {
    padding: 24px 18px;
    border-radius: 0 0 28px 28px;
  }

  .login_content form input[type="text"],
  .login_content form input[type="email"],
  .login_content form input[type="password"],
  .login_button {
    min-height: 52px;
    border-radius: 16px;
  }

  .login_button {
    letter-spacing: 0.18em;
  }

  .login_header_mark {
    width: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
