.formios-login-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.14), rgba(10, 14, 20, 0.32)),
    url("https://desktop.e-hsn.com/assets/img/background.jpg") center center / cover no-repeat fixed;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #f8fbff;
  overflow: hidden;
}

.formios-login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(4, 8, 15, 0.22));
  pointer-events: none;
}

.macos-login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.macos-login-card {
  width: min(100%, 560px);
  padding: 0 22px 22px;
  border-radius: 30px;
  background: rgba(104, 111, 123, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow:
    0 26px 80px rgba(8, 12, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  text-align: center;
  overflow: hidden;
}

.macos-login-card--compact {
  width: min(100%, 560px);
}

.macos-login-brand {
  display: flex;
  justify-content: center;
  margin: 6px 0 18px;
}

.login-brand-logo {
  display: block;
  width: 130px;
  max-width: 130px;
  height: auto;
  opacity: .96;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .18));
}

.macos-window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 20px;
}

.macos-window-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.macos-window-dot--red {
  background: #ff5f57;
}

.macos-window-dot--yellow {
  background: #febc2e;
}

.macos-window-dot--green {
  background: #28c840;
}

.macos-login-form {
  text-align: left;
  padding: 4px 0 0;
  width: 100%;
  max-width: 100%;
}

.macos-field {
  display: block;
  width: 100%;
  margin: 0;
}

.macos-field + .macos-field {
  margin-top: 12px;
}

.macos-field__input {
  width: 100%;
  max-width: none;
  height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  color: #f8fbff;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.macos-field__input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.macos-field__input:focus {
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.16);
}

.macos-login-meta {
  display: flex;
  justify-content: center;
  margin: 16px 0 16px;
}

.macos-login-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.macos-login-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.macos-login-submit {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #253142;
  background: linear-gradient(180deg, #f9fbff 0%, #dde6f1 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 10px 24px rgba(10, 14, 20, 0.16);
  transition: transform 120ms ease, filter 120ms ease;
}

.macos-login-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.01);
}

.macos-login-submit:active {
  transform: translateY(0);
}

.macos-login-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.macos-login-alert--success {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.28);
  color: #eafff2;
}

.macos-login-alert--error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.28);
  color: #fff1f2;
}

@media (max-width: 560px) {
  .macos-login-shell {
    padding: 16px;
  }

  .macos-login-card {
    width: min(100%, 560px);
    padding: 0 16px 16px;
    border-radius: 22px;
  }

  .macos-field__input,
  .macos-login-submit {
    height: 48px;
  }
}
