.login-page {
  display: flex;
  width: 100%;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background: #f9f9fb;
}

.login-visual {
  position: relative;
  display: flex;
  width: 50%;
  height: 100vh;
  min-height: 0;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #33647a;
}

.login-visual__slider {
  position: absolute;
  inset: 0;
}

.login-visual__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease-in-out;
}

.login-visual__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

.login-visual__slide--primary {
  z-index: 1;
  background: #33647a;
}

.login-visual__slide--secondary {
  z-index: 2;
  background: #f4f5f7;
}

.login-visual__slide--primary::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(51, 100, 122, 0.16);
  z-index: 1;
}

.login-visual__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: overlay;
  opacity: 0.8;
  z-index: 0;
}

.login-visual__image--plain {
  mix-blend-mode: normal;
  opacity: 1;
  object-fit: cover;
  object-position: left center;
}

.login-visual__shade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 33.333%;
  background: linear-gradient(0deg, #33647a 0%, rgba(51, 100, 122, 0) 100%);
  opacity: 0.6;
  z-index: 2;
}

.login-visual__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 571px;
  padding: 0 64px;
  color: #ffffff;
}

.login-visual h1 {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.64px;
  line-height: 40px;
}

.login-visual p {
  max-width: 448px;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  opacity: 0.9;
}

.login-visual__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
}

.login-visual__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.login-visual__dot.is-active {
  background: #ffffff;
  transform: scale(1.15);
}

.login-visual__dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .login-visual__slide {
    transition: none;
  }
}

.login-panel {
  position: relative;
  display: flex;
  width: 50%;
  height: 100vh;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px 32px;
  background: #f9f9fb;
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 440px;
  flex-direction: column;
  align-items: center;
}

.login-brand {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  text-align: center;
}

.login-brand__logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.login-brand h2 {
  margin: 0;
  color: #33647a;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.24px;
  line-height: 32px;
}

.login-brand p {
  margin: 0;
  color: #41484c;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 16px;
  white-space: nowrap;
  text-transform: uppercase;
}

.login-card {
  display: flex;
  width: 100%;
  min-height: 406px;
  flex-direction: column;
  gap: 24px;
  padding: 28px 32px 36px;
  border: 1px solid #c0c7cc;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(51, 51, 51, 0.04);
}

.login-card__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.login-card__header h3 {
  margin: 0;
  color: #191c1d;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.login-card__header p {
  margin: 0;
  color: #5a5c5c;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.login-form {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 24px;
}

.form-field {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 8px;
}

.form-field > span:first-child,
.form-field__top {
  color: #41484c;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  line-height: 16px;
}

.form-field__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-field__top a {
  color: #33647a;
}

.input-shell {
  position: relative;
  display: flex;
  width: 100%;
  height: 46px;
  align-items: center;
}

.input-shell input {
  width: 100%;
  height: 46px;
  border: 1px solid #c0c7cc;
  border-radius: 12px;
  background: #f9f9fb;
  color: #191c1d;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  outline: none;
  padding: 13px 48px;
}

.input-shell input::placeholder {
  color: #6b7280;
  opacity: 1;
}

.input-shell input:focus {
  border-color: #33647a;
  box-shadow: 0 0 0 3px rgba(51, 100, 122, 0.12);
}

.input-icon {
  position: absolute;
  left: 16px;
  width: 17px;
  height: 18px;
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  right: 16px;
  display: flex;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: #71787d;
  cursor: pointer;
}

.password-toggle__icon {
  width: 19px;
  height: 19px;
  pointer-events: none;
}

.password-toggle__icon--hide {
  display: none !important;
}

.password-toggle.is-visible .password-toggle__icon--show {
  display: none !important;
}

.password-toggle.is-visible .password-toggle__icon--hide {
  display: block !important;
}


html:not(.i18n-ready) .login-page [data-i18n] {
  visibility: hidden;
}

.login-submit {
  display: flex;
  width: 100%;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: #306177;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  transition: transform 160ms ease, background 160ms ease;
}

.login-submit svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.login-submit:hover {
  background: #285468;
  transform: translateY(-1px);
}

.login-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.login-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

.forgot-password-panel {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 32px;
}

.forgot-password-panel[hidden],
.forgot-password-step[hidden],
[data-login-panel][hidden] {
  display: none;
}

.forgot-password-step {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 24px;
}

.forgot-reset-form {
  gap: 20px;
}

.forgot-reset-login-link {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #5a5c5c;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.forgot-reset-login-link:hover {
  color: #306177;
}

[data-forgot-reset-status] {
  margin-top: -8px;
}

.forgot-password-header {
  position: relative;
  padding-top: 8px;
}

.forgot-back-button {
  position: absolute;
  top: 4px;
  left: 0;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #306177;
  cursor: pointer;
}

.forgot-back-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.forgot-password-form {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 24px;
}

.forgot-password-submit {
  margin-top: 8px;
}

.forgot-password-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

.forgot-password-status.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #dc2626;
}

.password-recovery-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(25, 28, 29, 0.42);
}

.password-recovery-modal[hidden] {
  display: none;
}

.password-recovery-modal__dialog {
  width: 100%;
  max-width: 420px;
  padding: 28px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(25, 28, 29, 0.22);
}

.password-recovery-modal__dialog h2 {
  margin: 0 0 12px;
  color: #2d2f2f;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.password-recovery-modal__dialog p {
  margin: 0;
  color: #5a5c5c;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.password-recovery-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.password-recovery-modal__actions button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  padding: 10px 16px;
}

.password-recovery-modal__secondary {
  background: transparent;
  color: #306177;
}

.password-recovery-modal__primary {
  background: #306177;
  color: #ffffff;
}

.login-form-footer {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #e7e8e8;
  text-align: center;
}

.forgot-password-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 16px;
  color: #306177;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.signup-prompt {
  margin: 0;
  color: #5a5c5c;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.signup-prompt a {
  color: #306177;
  font-weight: 700;
}

.login-footer {
  margin: 24px 0 0;
  color: #41484c;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  line-height: 16px;
  opacity: 0.4;
  text-align: center;
}

.auth-floating-actions {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.language-button,
.support-button {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c0c7cc;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  color: #33647a;
  cursor: pointer;
}

.language-button img {
  width: 20px;
  height: 20px;
}

.support-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.support-popover {
  position: absolute;
  right: 32px;
  bottom: 152px;
  z-index: 20;
  width: min(300px, calc(100% - 64px));
  padding: 16px;
  border: 1px solid #d8dee3;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(25, 28, 29, 0.16);
}

.support-popover[hidden] {
  display: none;
}

.support-popover::after {
  position: absolute;
  right: 20px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-right: 1px solid #d8dee3;
  border-bottom: 1px solid #d8dee3;
  background: #ffffff;
  content: "";
  transform: rotate(45deg);
}

.support-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.support-popover__header strong {
  color: #191c1d;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.support-popover__header button {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5a5c5c;
  font-size: 24px;
  line-height: 1;
}

.support-popover__header button:hover {
  background: rgba(48, 97, 119, 0.08);
  color: #306177;
}

.support-popover p {
  margin: 0 0 12px;
  color: #5a5c5c;
  font-size: 13px;
  line-height: 19px;
}

.support-popover__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #e7e8e8;
  border-radius: 12px;
  background: #f9f9fb;
}

.support-popover__item + .support-popover__item {
  margin-top: 8px;
}

.support-popover__item span {
  color: #71787d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 15px;
  text-transform: uppercase;
}

.support-popover__item strong {
  color: #306177;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

@media (max-width: 1100px) {
  .login-page {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    flex-direction: column;
  }

  .login-panel {
    height: auto;
    width: 100%;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    min-height: 100svh;
    overflow: visible;
    padding: 32px 24px;
  }
}

@media (max-width: 560px) {
  .login-panel {
    padding: 28px 20px 24px;
  }

  .login-visual__content {
    padding: 0 24px;
  }

  .login-visual h1 {
    font-size: 26px;
    line-height: 34px;
  }

  .login-card {
    padding: 24px;
  }

  .login-brand {
    margin-bottom: 24px;
  }

  .auth-floating-actions {
    right: 20px;
    bottom: 16px;
  }

  .support-popover {
    right: 20px;
    bottom: 136px;
    width: calc(100% - 40px);
  }
}
