.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__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: overlay;
  opacity: 0.8;
  z-index: 0;
}

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

.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-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;
}

.password-toggle__icon--hide,
.password-toggle.is-visible .password-toggle__icon--show {
  display: none;
}

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

.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],
[data-login-panel][hidden] {
  display: none;
}

.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;
}

.support-button {
  position: absolute;
  right: 32px;
  bottom: 32px;
  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;
}

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

@media (max-width: 960px) {
  .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;
  }

  .support-button {
    right: 20px;
    bottom: 16px;
  }
}
