/* Login owns its layout; application breakpoints do not override these rules. */
.login-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--surface);
}
.login-shell > * {
  min-width: 0;
}
.login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: clamp(28px, 3.6vw, 64px);
  color: white;
  background: var(--blue);
}
.login-story .brand {
  width: 235px;
  max-width: 100%;
  color: white;
}
.login-story .brand img {
  width: 100%;
}
.login-story .brand .brand-dark {
  display: none;
}
.login-story .brand .brand-light {
  display: block;
}
.login-story-content {
  position: relative;
  z-index: 1;
  padding: 32px 0;
}
.login-story h1 {
  max-width: none;
  font-size: clamp(30px, 2.5vw, 40px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.9px;
}
.login-story-description {
  margin-top: 20px;
  color: #e7edff;
  font-size: 16px;
  line-height: 1.6;
}
.login-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin-top: 32px;
}
.login-module {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font-size: 14px;
  line-height: 1.5;
  color: #eff2ff;
}
.login-module svg {
  width: 22px;
  height: 22px;
  color: #a9f0d3;
}
.login-module:nth-child(2) svg,
.login-module:nth-child(3) svg {
  color: #ffc3ae;
}
.login-story-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: #e7edff;
  font-size: 14px;
}
.login-decoration {
  position: absolute;
  right: -90px;
  bottom: 20px;
  width: 300px;
  height: 300px;
  border: 48px solid #ffffff06;
  border-radius: 80px;
  transform: rotate(-25deg);
  pointer-events: none;
}
.login-form-side {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  row-gap: 24px;
  min-width: 0;
  padding: 28px clamp(24px, 3.5vw, 56px);
  background: var(--surface);
}
.login-top {
  display: flex;
  justify-content: flex-end;
  align-self: start;
}
.login-top .language-select {
  min-height: 44px;
  background: white;
}
.login-card {
  align-self: center;
  width: min(100%, 400px);
  min-width: 0;
  margin: 0 auto;
  padding: 0;
}
.login-welcome {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  color: var(--blue);
  background: var(--blue-soft);
}
.login-card h2 {
  max-width: none;
  font-size: clamp(24px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.6px;
}
.login-card > p {
  margin: 8px 0 28px;
  color: #60708a;
  font-size: 15px;
}
.login-card .field {
  margin-bottom: 20px;
}
.login-card .field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  font-size: 16px;
  background: #fcfdff;
}
.login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}
.login-card > .login-help {
  width: 100%;
  max-width: none;
  margin: 24px 0 0;
  color: #60708a;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}
.login-footer {
  align-self: end;
  margin: 0;
  text-align: center;
  color: #60708a;
  font-size: 14px;
}
.login-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
}
.login-footer a:hover {
  text-decoration: underline;
}
.login-password-wrap {
  position: relative;
  display: block;
}
.login-password-wrap input {
  padding-right: 54px;
}
.login-password-wrap .icon-button {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 44px;
  height: 44px;
  color: #79869d;
}
.login-password-wrap .icon-button svg {
  width: 18px;
}
@media (max-width: 1100px) and (min-width: 901px) {
  .login-modules {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }
  .login-story-footer span:last-child {
    display: none;
  }
}
@media (max-width: 900px) {
  .login-shell {
    display: block;
  }
  .login-story {
    min-height: 84px;
    padding: 20px;
    flex-direction: row;
    align-items: center;
  }
  .login-story .brand {
    width: min(220px, calc(100% - 136px));
  }
  .login-story-content,
  .login-story-footer,
  .login-decoration {
    display: none;
  }
  .login-form-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    min-height: calc(100vh - 84px);
    min-height: calc(100svh - 84px);
    padding: clamp(24px, 5vh, 48px) 24px;
  }
  .login-top {
    position: absolute;
    top: 20px;
    right: 20px;
  }
  .login-top .language-select {
    width: 112px;
  }
  .login-card {
    flex: none;
    align-self: center;
  }
  .login-welcome {
    display: none;
  }
  .login-footer {
    flex: none;
    align-self: center;
    margin-top: auto;
  }
}
@media (max-height: 700px) {
  .login-form-side {
    padding-top: 20px;
    padding-bottom: 20px;
    row-gap: 16px;
  }
  .login-welcome {
    display: none;
  }
  .login-card > p {
    margin-bottom: 20px;
  }
  .login-card .field {
    margin-bottom: 16px;
  }
  .login-card > .login-help {
    margin-top: 20px;
  }
  .login-story-content {
    padding: 12px 0;
  }
  .login-modules {
    gap: 8px 16px;
    margin-top: 24px;
  }
}
