:root {
  --bg: #03100b;
  --surface: rgba(7, 22, 16, 0.9);
  --surface-2: rgba(11, 31, 22, 0.95);
  --line: rgba(55, 255, 104, 0.22);
  --line-strong: rgba(44, 255, 89, 0.42);
  --text: #f4fff8;
  --muted: #a9bdb0;
  --green: #20ef45;
  --green-soft: #9cff7e;
  --teal: #55ffd0;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    linear-gradient(135deg, rgba(3, 12, 8, 0.92), rgba(6, 22, 15, 0.88)),
    url("assets/fundo-hd-siena.png") center center / cover fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(32, 239, 69, 0.14), transparent 44%),
    linear-gradient(180deg, rgba(85, 255, 208, 0.08), transparent 42%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  padding: 18px;
}

.login-hero {
  width: min(100%, 1180px);
  min-height: calc(100vh - 36px);
  margin: auto;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.login-topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(3, 13, 10, 0.86);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: min(36vw, 170px);
  height: auto;
}

.brand-divider {
  width: 1px;
  height: 30px;
  background: var(--line);
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.12em;
}

.security-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #c9ffd1;
  background: rgba(32, 239, 69, 0.12);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.login-content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: 28px;
}

.copy-block {
  max-width: 720px;
}

.eyebrow,
.panel-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--green-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 900;
}

.copy-block h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.4rem, 6vw, 5.9rem);
  line-height: 0.96;
}

.copy-block p,
.login-panel p {
  color: var(--muted);
  line-height: 1.62;
}

.copy-block p {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: 1.05rem;
}

.login-panel {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface), rgba(4, 17, 12, 0.96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-panel h2 {
  margin: 0;
  font-size: 1.55rem;
}

.login-panel p {
  margin: 12px 0 0;
}

.microsoft-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 14px;
  color: #031407;
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(0, 228, 42, 0.16);
  transition: transform 160ms ease, filter 160ms ease;
}

.login-feedback {
  padding: 12px 14px;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 12px;
  color: #ffe8a8;
  background: rgba(255, 209, 102, 0.1);
  line-height: 1.45;
}

.login-feedback.success {
  color: #c9ffd1;
  border-color: rgba(32, 239, 69, 0.28);
  background: rgba(32, 239, 69, 0.1);
}

.microsoft-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.microsoft-mark {
  width: 22px;
  height: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
}

.microsoft-mark i:nth-child(1) {
  background: #f25022;
}

.microsoft-mark i:nth-child(2) {
  background: #7fba00;
}

.microsoft-mark i:nth-child(3) {
  background: #00a4ef;
}

.microsoft-mark i:nth-child(4) {
  background: #ffb900;
}

.login-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.login-notes span {
  padding: 8px 10px;
  border: 1px solid rgba(32, 239, 69, 0.2);
  border-radius: 999px;
  color: #c8d9e8;
  background: rgba(32, 239, 69, 0.08);
  font-size: 0.82rem;
}

@media (max-width: 880px) {
  .login-content {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .copy-block h1 {
    font-size: clamp(2.3rem, 12vw, 4rem);
  }
}

@media (max-width: 640px) {
  .login-shell {
    padding: 12px;
  }

  .login-topbar {
    display: grid;
  }

  .security-pill,
  .microsoft-button {
    width: 100%;
  }

  .login-panel {
    padding: 22px;
  }
}
