:root {
  color-scheme: dark;
  --login-bg: #0d1728;
  --login-surface: #111e31;
  --login-surface-raised: #172940;
  --login-border: rgba(161, 187, 217, 0.28);
  --login-text: #f3f7fc;
  --login-muted: #b0bfd2;
  --login-accent: #70dfd0;
  --login-accent-blue: #146bd6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--login-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--login-bg);
  color: var(--login-text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.login-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.login-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1 1 59%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: #22334a;
  background-image: url("../images/login-hero2.webp");
  background-size: cover;
  background-position: left center;
}

.login-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 17, 30, 0.2) 0%, rgba(7, 17, 30, 0.08) 38%, transparent 72%),
    radial-gradient(ellipse at 43% 54%, transparent 30%, rgba(6, 16, 29, 0.12) 100%),
    linear-gradient(180deg, rgba(8, 19, 34, 0.25) 0%, rgba(8, 19, 34, 0.045) 31%, transparent 57%),
    linear-gradient(0deg, rgba(8, 19, 34, 0.79) 0%, rgba(8, 19, 34, 0.58) 24%, rgba(8, 19, 34, 0.25) 50%, rgba(8, 19, 34, 0.03) 79%);
}

.login-hero::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: radial-gradient(circle, rgba(91, 220, 211, 0.2) 1px, transparent 1.4px) 0 0 / 28px 28px;
  opacity: 0.3;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.45) 25%, transparent 43%, transparent 78%, rgba(0, 0, 0, 0.5) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.45) 25%, transparent 43%, transparent 78%, rgba(0, 0, 0, 0.5) 100%);
}

.login-hero-inner {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2.5rem clamp(2.5rem, 4.5vw, 5rem) 3.25rem;
}

.login-hero-inner::before {
  position: absolute;
  z-index: -1;
  top: 16%;
  left: -170px;
  width: 340px;
  height: 220px;
  border-top: 1px solid rgba(32, 218, 198, 0.36);
  border-right: 1px solid rgba(32, 218, 198, 0.36);
  border-bottom: 1px solid rgba(32, 218, 198, 0.36);
  border-radius: 0 26px 26px 0;
  content: "";
  pointer-events: none;
}

.login-hero-inner::after {
  position: absolute;
  z-index: -1;
  top: 39%;
  left: -88px;
  width: 418px;
  height: 234px;
  border-top: 1px solid rgba(32, 218, 198, 0.32);
  border-right: 1px solid rgba(32, 218, 198, 0.34);
  border-bottom: 1px solid rgba(32, 218, 198, 0.34);
  border-radius: 0 26px 26px 0;
  content: "";
  pointer-events: none;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
}

.ektra-mark {
  display: block;
  flex: 0 0 auto;
}

.hero-mark {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 6px 16px rgba(7, 20, 33, 0.3));
}

.hero-brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-shadow: 0 1px 8px rgba(4, 12, 23, 0.5);
}

.login-hero-copy {
  width: 100%;
  max-width: 760px;
  padding-bottom: clamp(0rem, 2.5vh, 2rem);
}

.hero-title {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero-title-accent {
  background: linear-gradient(95deg, #20dabc 0%, #4bd8e1 96%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 560px;
  margin: 1.25rem 0 0;
  color: rgba(244, 248, 253, 0.86);
  font-size: clamp(0.96rem, 1.1vw, 1.08rem);
  font-weight: 450;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 1.65rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-benefits li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1.45rem;
  color: rgba(242, 248, 255, 0.88);
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero-benefits li:first-child {
  padding-left: 0;
}

.hero-benefits li:last-child {
  padding-right: 0;
}

.hero-benefits li + li::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 44px;
  background: rgba(150, 183, 216, 0.22);
  content: "";
  transform: translateY(-50%);
}

.hero-benefits i {
  display: grid;
  flex: 0 0 56px;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(154, 191, 218, 0.12);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(27, 48, 66, 0.9), rgba(19, 37, 54, 0.8));
  box-shadow: inset 0 1px 0 rgba(220, 241, 255, 0.04);
  color: #20dfc9;
  font-size: 1.45rem;
}

.login-access-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 0 0 41%;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 3rem clamp(1.75rem, 4vw, 4rem);
  border-left: 1px solid rgba(180, 204, 230, 0.1);
  background:
    radial-gradient(ellipse at 94% 3%, rgba(48, 103, 151, 0.17), transparent 48%),
    linear-gradient(155deg, #17283f 0%, var(--login-surface) 48%, #101b2d 100%);
}

.login-access-panel::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(circle, rgba(124, 185, 218, 0.19) 0.8px, transparent 1.2px) 0 0 / 25px 25px;
  content: "";
  opacity: 0.2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(225deg, #000 0%, rgba(0, 0, 0, 0.4) 26%, transparent 49%);
  mask-image: linear-gradient(225deg, #000 0%, rgba(0, 0, 0, 0.4) 26%, transparent 49%);
}

.login-form-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 466px;
  min-width: 0;
  animation: loginContentIn 340ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

.form-panel-header {
  margin: 0 0 2.25rem;
  text-align: center;
}

.form-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.95rem;
  margin-bottom: 1.7rem;
  color: #f4f8fd;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.form-mark {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 6px 18px rgba(5, 17, 31, 0.36));
}

.form-panel-title {
  margin: 0;
  color: var(--login-text);
  font-size: clamp(2rem, 2.25vw, 2.2rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.15;
  text-wrap: balance;
}

.form-panel-sub {
  margin: 0.7rem 0 0;
  color: #b2c2d7;
  font-size: 1rem;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 1.4rem;
  width: 100%;
}

.login-field {
  min-width: 0;
}

.login-label {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: #d8e2ef;
  font-size: 0.86rem;
  font-weight: 650;
}

.login-input-frame {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 1px solid var(--login-border);
  border-radius: 13px;
  background: rgba(19, 32, 51, 0.72);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.login-input-frame:focus-within {
  border-color: var(--login-accent);
  background: rgba(11, 28, 47, 0.9);
  box-shadow: 0 0 0 3px rgba(81, 196, 191, 0.16);
}

.login-input-icon {
  position: absolute;
  left: 1rem;
  color: #a8bdd7;
  font-size: 1.05rem;
  pointer-events: none;
}

.login-control {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0.8rem 1rem 0.8rem 2.9rem;
  border: 0;
  border-radius: inherit;
  outline: 0;
  background: transparent;
  color: var(--login-text);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
}

.login-control::placeholder {
  color: #9aacc3;
  opacity: 1;
}

.login-control:focus-visible {
  outline: 0;
}

.login-password-control {
  padding-right: 0.25rem;
}

.password-toggle {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: 3px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #b2c4dc;
  cursor: pointer;
  font-size: 1.1rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 150ms ease, background-color 150ms ease;
}

.password-toggle:hover {
  background: rgba(145, 174, 207, 0.1);
  color: #edf5ff;
}

.password-toggle:focus-visible,
.login-submit:focus-visible,
.hero-brand:focus-visible {
  outline: 2px solid #8de7db;
  outline-offset: 3px;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 56px;
  margin-top: 0.2rem;
  padding: 0.9rem 1.25rem;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(105deg, var(--login-accent-blue) 0%, #0f7ca4 54%, #07836b 100%);
  box-shadow: 0 9px 23px rgba(12, 111, 150, 0.23);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 750;
  letter-spacing: 0.005em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 11px 28px rgba(13, 132, 164, 0.28);
}

.login-submit:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

.login-submit i {
  font-size: 1.05rem;
  transition: transform 180ms ease;
}

.login-submit:hover i {
  transform: translateX(3px);
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.55rem 0 0;
  padding-top: 1.45rem;
  border-top: 1px solid rgba(166, 193, 223, 0.14);
  color: #aebed2;
  font-size: 0.77rem;
  font-weight: 550;
  text-align: center;
}

.secure-note i {
  color: #91a9ca;
  font-size: 0.95rem;
}

.form-panel-credit {
  margin: clamp(2.25rem, 4.8vh, 3rem) 0 0;
  color: #7187a5;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-align: center;
}

@keyframes loginContentIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .login-access-panel {
    padding-inline: clamp(1.75rem, 3vw, 2.5rem);
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .login-hero {
    flex-basis: 54%;
  }

  .login-access-panel {
    flex-basis: 46%;
    padding-inline: clamp(1.65rem, 3vw, 2.4rem);
  }

  .login-hero-inner {
    padding-inline: clamp(2rem, 3.5vw, 2.8rem);
  }

  .hero-title {
    font-size: clamp(2.2rem, 3.7vw, 3rem);
  }

  .hero-brand {
    gap: 0.7rem;
  }

  .hero-mark {
    width: 46px;
    height: 46px;
  }

  .hero-brand-name {
    font-size: 1.2rem;
  }

  .hero-benefits li {
    gap: 0.55rem;
    padding-inline: 0.65rem;
    font-size: 0.8rem;
  }

  .hero-benefits i {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 1.2rem;
  }

  .hero-benefits li + li::before {
    height: 40px;
  }
}

@media (max-width: 991.98px) {
  .login-shell {
    flex-direction: column;
  }

  .login-hero {
    flex: 0 0 auto;
    min-height: clamp(220px, 32dvh, 320px);
    background-position: center 42%;
  }

  .login-hero::after {
    opacity: 0.2;
  }

  .login-hero-inner::before {
    display: none;
  }

  .login-hero-inner::after {
    display: none;
  }

  .login-hero-inner {
    min-height: clamp(220px, 32dvh, 320px);
    padding:
      max(1.35rem, env(safe-area-inset-top))
      max(1.35rem, env(safe-area-inset-right))
      1.6rem
      max(1.35rem, env(safe-area-inset-left));
  }

  .hero-mark {
    width: 36px;
    height: 36px;
  }

  .hero-brand {
    gap: 0.6rem;
  }

  .hero-brand-name {
    font-size: 0.88rem;
  }

  .login-hero-copy {
    padding: 0;
  }

  .hero-title {
    max-width: 660px;
    font-size: clamp(2rem, 5.7vw, 3.5rem);
  }

  .hero-subtitle {
    max-width: 620px;
    margin-top: 0.7rem;
    font-size: 0.9rem;
  }

  .hero-benefits {
    gap: 0;
    margin-top: 0.85rem;
  }

  .hero-benefits li {
    gap: 0.5rem;
    padding-inline: 0.6rem;
    font-size: 0.8rem;
  }

  .hero-benefits li + li::before {
    display: none;
  }

  .hero-benefits i {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.12rem;
  }

  .login-access-panel {
    flex: 1 0 auto;
    min-height: auto;
    padding:
      2.6rem
      max(1.5rem, env(safe-area-inset-right))
      max(2.25rem, env(safe-area-inset-bottom))
      max(1.5rem, env(safe-area-inset-left));
  }

  .login-form-inner {
    max-width: 456px;
  }

  .form-panel-header {
    margin-bottom: 1.7rem;
  }

  .form-brand {
    gap: 0.8rem;
    margin-bottom: 1.15rem;
    font-size: 1.2rem;
  }

  .form-mark {
    width: 46px;
    height: 46px;
  }

  .form-panel-title {
    font-size: clamp(1.95rem, 4vw, 2.15rem);
  }

  .secure-note {
    padding-top: 1.25rem;
  }

  .form-panel-credit {
    margin-top: 2rem;
  }
}

@media (max-width: 575.98px) {
  .login-hero {
    min-height: clamp(200px, 30dvh, 270px);
    background-position: center 46%;
  }

  .login-hero::after {
    opacity: 0.12;
  }

  .login-hero-inner {
    min-height: clamp(200px, 30dvh, 270px);
    padding:
      max(1.15rem, env(safe-area-inset-top))
      max(1.25rem, env(safe-area-inset-right))
      1.35rem
      max(1.25rem, env(safe-area-inset-left));
  }

  .hero-mark {
    width: 32px;
    height: 32px;
  }

  .hero-brand-name {
    font-size: 0.84rem;
  }

  .hero-title {
    font-size: clamp(1.82rem, 8vw, 2.5rem);
  }

  .hero-subtitle,
  .hero-benefits {
    display: none;
  }

  .login-access-panel {
    padding-top: 2.1rem;
    padding-bottom: max(1.8rem, env(safe-area-inset-bottom));
  }

  .form-panel-title {
    font-size: 1.75rem;
  }

  .form-brand {
    gap: 0.7rem;
    margin-bottom: 1rem;
    font-size: 1.08rem;
  }

  .form-mark {
    width: 40px;
    height: 40px;
  }

  .form-panel-credit {
    margin-top: 1.55rem;
  }
}

@media (max-width: 991.98px) and (max-height: 740px) {
  .hero-subtitle,
  .hero-benefits {
    display: none;
  }

  .login-access-panel {
    padding-top: 2rem;
  }
}

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

}
