.login-page {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 24px;
  overflow-x: hidden;
  background: #3599db url("login-background.jpg") center / cover no-repeat;
  color: #1b3046;
  font-size: 16px;
}
.login-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 38px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 55px #10294940;
}

.login-logo {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 24px;
}

.login-field { margin-bottom: 16px; }
.login-field label {
  display: block;
  margin-bottom: 7px;
  color: #263b52;
  font-size: 16px;
  font-weight: 600;
}
.login-field input {
  display: block;
  width: 100%;
  height: 45px;
  padding: 0 16px;
  border: 1px solid #d8e2eb;
  border-radius: 8px;
  background: #f7f9fb;
  color: #172c44;
  font: inherit;
  font-size: 18px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login-field input::placeholder { color: #71849a; font-size: 16px; opacity: 1; }
.login-field input:hover { border-color: #9fb4c7; background: #fff; }
.login-field input:focus {
  border-color: #2c78b7;
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 3px #2c78b729;
}
.login-password-wrap { position: relative; }
.login-password-wrap input { padding-inline-end: 78px; }
.login-password-toggle {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #245c83;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
}
.login-password-toggle:hover { color: #123d61; }
.login-password-toggle:focus-visible { outline: 2px solid #2c78b7; outline-offset: -4px; }
.login-help-row { margin: -2px 0 0; text-align: end; line-height: 1.4; }
.login-help-link { color: #175f98; font-size: 14px; font-weight: 600; text-decoration: none; }
.login-help-link:hover { text-decoration: underline; }
.login-help-link:focus-visible { outline: 2px solid #2c78b7; outline-offset: 3px; }
.login-error {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid #f0c5c5;
  border-radius: 8px;
  background: #fff5f5;
  color: #9f2626;
  font-size: 14px;
  line-height: 1.4;
}
.login-error[hidden] { display: none; }
.login-submit {
  display: block;
  width: 100%;
  min-height: 45px;
  margin-top: 20px;
  padding: 10px 16px;
  border: 1px solid #44d3a2;
  border-radius: 30px;
  background: #44d3a2;
  color: #031262;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  transition: background-color .15s ease, border-color .15s ease;
}
.login-submit:hover { border-color: #31c391; background: #31c391; }
.login-submit:disabled { opacity: .65; cursor: wait; }
.login-submit:focus-visible { outline: 3px solid #44d3a2; outline-offset: 3px; }
.login-help-dialog {
  width: min(380px, calc(100% - 32px));
  padding: 30px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #172c44;
  text-align: start;
  box-shadow: 0 24px 60px #06152766;
}
.login-help-dialog::backdrop { background: #05172bb3; }
.login-help-dialog h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.3; }
.login-help-dialog p { margin: 0 0 24px; color: #52657a; font-size: 16px; line-height: 1.5; }
.login-help-dialog form { display: flex; justify-content: flex-end; }
.login-help-close {
  min-height: 42px;
  padding: 8px 20px;
  border: 0;
  border-radius: 22px;
  background: #44d3a2;
  color: #031262;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}
.login-help-close:hover { background: #31c391; }
.login-help-close:focus-visible { outline: 2px solid #2c78b7; outline-offset: 3px; }
.login-languages {
  position: absolute;
  z-index: 2;
  inset-block-start: 24px;
  inset-inline-end: 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid #dbe5ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 20px #1837530d;
}
.login-languages button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64758a;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
}
.login-languages img { display: block; width: 24px; height: 15px; border: 1px solid #cbd6e2; border-radius: 2px; object-fit: cover; }
.login-languages button:hover,
.login-languages button[aria-pressed="true"] { background: #eef5fb; color: #153b65; }
.login-languages button[aria-pressed="true"] { font-weight: 700; }
.login-languages button:focus-visible { outline: 2px solid #3174b5; outline-offset: 1px; }

@media (max-width: 480px) {
  .login-page { padding: 16px; }
  .login-card { padding: 32px 24px; }
  .login-logo { margin-bottom: 22px; }
  .login-languages { inset-block-start: 16px; inset-inline-end: 16px; }
}
@media (max-width: 340px) { .login-languages button span { display: none; } }
@media (max-height: 650px) { .login-page { align-items: start; padding-block-start: 84px; } }
