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

/* ================= Windows-style login ================= */
.windows-login-page .macos-login-shell {
  justify-content: flex-end;
  padding-right: 8vw;
}
@media (max-width: 820px) {
  .windows-login-page .macos-login-shell { justify-content: center; padding-right: 24px; }
}

/* ── Bloco esquerdo: relógio + data + clima ── */
.win-login-left {
  position: fixed;
  left: 6vw;
  top: 50%;
  transform: translateY(-58%);
  z-index: 2;
  color: #f8fafc;
  text-shadow: 0 2px 16px rgba(0,0,0,.55);
  pointer-events: none;
}
.win-login-clock { font-size: clamp(64px, 9vw, 128px); font-weight: 200; line-height: .95; letter-spacing: -2px; }
.win-login-date { font-size: clamp(16px, 1.6vw, 24px); font-weight: 400; margin-top: 2px; opacity: .96; }
.win-login-weather {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  font-size: 15px;
}
.win-weather-text { display: flex; flex-direction: column; gap: 2px; }
.win-weather-city { font-size: 12px; opacity: .75; }
.win-login-weather i { font-size: 22px; }
.win-weather-temp { font-weight: 700; font-size: 18px; }
.win-weather-place { opacity: .85; font-size: 13px; }

@media (max-width: 820px) {
  .win-login-left {
    position: static;
    transform: none;
    text-align: center;
    margin: 8vh auto 0;
    left: auto;
    pointer-events: auto;
  }
  .win-login-weather { pointer-events: auto; }
}

/* ── Traffic lights acima da logo, sem barra ── */
.login-traffic-dots {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  padding: 12px 0 14px 16px;
}
.login-traffic-dots .macos-window-dot {
  width: 12px; height: 12px; border-radius: 50%;
}

/* ── Marca (logo + nome) ── */
.windows-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
}
.windows-login-logo-img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; }
.windows-login-logo-fallback {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12);
  font-size: 22px; color: #fff;
}
.windows-login-brand-name { font-size: 15px; font-weight: 700; color: #f8fafc; letter-spacing: .3px; }

/* ── Faixa de notícias no rodapé (estilo widgets do Windows) ── */
.win-login-news {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 12px;
  width: min(1180px, calc(100vw - 40px));
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
  scroll-snap-type: x mandatory;
}
.win-login-news::-webkit-scrollbar { height: 6px; }
.win-login-news::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
.wln-card {
  flex: 1 1 0;
  min-width: 180px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: rgba(8, 12, 22, 0.72);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #f1f5f9;
  backdrop-filter: blur(12px);
  transition: transform .16s ease, border-color .16s ease;
}
.wln-card:hover { transform: translateY(-3px); border-color: rgba(245,158,11,0.5); }
.wln-img { height: 74px; background-size: cover; background-position: center; }
.wln-img--empty { display: flex; align-items: center; justify-content: center; font-size: 22px; color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }
.wln-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 5px; }
.wln-cat { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #60a5fa; }
.wln-title { font-size: 11.5px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 820px) {
  .win-login-news { bottom: 12px; width: calc(100vw - 24px); }
  .wln-card { flex: 0 0 78%; }
}
