:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eef5f8;
  background: #0c2233;
  font-synthesis: none;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #9bcddd;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

/* Fundo integral. */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 49% 80%,
      #28566b 0,
      transparent 54%
    ),
    radial-gradient(
      ellipse at 92% 14%,
      #214659 0,
      transparent 42%
    ),
    #0c2233;
}

.grid {
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image:
    linear-gradient(#80b7c3 1px, transparent 1px),
    linear-gradient(90deg, #80b7c3 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(transparent, #000);
}

.architecture {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  opacity: .76;
}

.shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 25, 39, .55),
      transparent 66%
    ),
    linear-gradient(
      0deg,
      rgba(7, 21, 32, .68),
      transparent 28%,
      transparent 60%,
      rgba(7, 21, 32, .28)
    );
}

/* Estrutura da página. */

.page {
  width: min(1480px, 100%);
  min-height: 100svh;
  margin: auto;
  padding: 36px clamp(24px, 5vw, 80px) 24px;
  display: flex;
  flex-direction: column;
}

.header,
.brand,
.footer,
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  justify-content: flex-start;
  gap: 14px;
  text-decoration: none;
  font-size: 22px;
  letter-spacing: -.6px;
  font-weight: 600;
}

.brand strong {
  color: #9dd3e5;
  font-weight: 600;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.5px;
  color: #a8bfcc;
  font-weight: 500;
  margin-top: 7px;
}

.brand-mark {
  display: grid;
  place-content: center;
  position: relative;
  width: 46px;
  height: 49px;
  border: 1px solid #7799aa;
  border-radius: 12px 12px 12px 3px;
  font-size: 18px;
  color: #bde7f1;
  font-weight: 500;
  letter-spacing: -1px;
  background: #ffffff08;
}

.brand-mark span {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  background: #aa546e;
  border: 3px solid #152f41;
  border-radius: 50%;
}

.edition {
  font-size: 11px;
  color: #afc4cf;
  letter-spacing: .3px;
}

.edition b {
  margin-left: 9px;
  letter-spacing: 3px;
  color: #e5edf2;
  font-weight: 500;
}

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  align-items: center;
  gap: clamp(40px, 6vw, 110px);
  padding: 24px 0;
}

/* Apresentação. */

.intro {
  align-self: stretch;
  position: relative;
  padding-top: 35px;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.2px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  color: #b6dce8;
}

.eyebrow span {
  width: 25px;
  height: 2px;
  background: #ac627b;
}

h1 {
  font-size: clamp(39px, 4.25vw, 64px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -2.7px;
  margin: 0 0 26px;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  color: #9bd2e3;
}

.lead {
  color: #b6cbd6;
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
  max-width: 460px;
}

.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-top: 28px;
  font-size: 10px;
  color: #b6cbd6;
}

.capabilities span + span::before {
  content: "/";
  margin: 0 12px;
  color: #668b9e;
}

.scene-caption {
  margin-top: auto;
  padding-top: 130px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #aac3d0;
}

.scene-caption span {
  height: 6px;
  width: 6px;
  border: 1px solid #a6d5df;
  border-radius: 50%;
}

/* Painel de acesso. */

.access-card {
  width: 100%;
  padding: 28px 36px 24px;
  background: rgba(246, 250, 252, .97);
  color: #19374b;
  border: 1px solid #ffffff90;
  border-radius: 22px;
  box-shadow: 0 30px 80px #03111c66;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card-top {
  margin-bottom: 22px;
}

.card-label {
  font-size: 9px;
  letter-spacing: 2.1px;
  font-weight: 700;
  color: #7c3a53;
}

.card-symbol {
  width: 32px;
  height: 32px;
  border: 1px solid #d5e0e6;
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: #47748a;
  font-size: 18px;
}

h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 0 0 12px;
}

.card-intro {
  color: #6b7e8a;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 24px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
}

input {
  display: block;
  width: 100%;
  min-height: 50px;
  border: 1px solid #cddae2;
  background: #fff;
  color: #19374b;
  border-radius: 9px;
  padding: 13px 14px;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}

input::placeholder {
  color: #899aa5;
}

input:focus {
  border-color: #4789a6;
  outline: none;
  box-shadow: 0 0 0 3px #378aab1a;
}

#username {
  margin-bottom: 22px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 52px;
}

.reveal {
  position: absolute;
  right: 3px;
  top: 3px;
  height: 44px;
  width: 44px;
  border: 0;
  background: transparent;
  color: #708897;
  border-radius: 7px;
  display: grid;
  place-content: center;
}

.reveal:hover {
  background: #ecf3f7;
  color: #19374b;
}

.message {
  font-size: 12px;
  line-height: 1.5;
  color: #82364e;
  margin: 14px 0;
  min-height: 18px;
  overflow-wrap: anywhere;
}

.submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 51px;
  background: #173d55;
  border: 1px solid #173d55;
  color: #fff;
  border-radius: 9px;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 5px 14px #18354d14;
  transition: background .15s;
}

.submit:hover {
  background: #24546f;
}

.submit:disabled {
  cursor: progress;
  opacity: .7;
}

.submit > span:last-child {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #dae4ea;
}

.card-footer > span {
  font-size: 25px;
  color: #8c5266;
}

.card-footer p {
  font-size: 11px;
  line-height: 1.7;
  color: #7a8c98;
  margin: 0;
}

/* Rodapé e acessibilidade. */

.footer {
  font-size: 10px;
  color: #90a9b8;
  gap: 16px;
  line-height: 1.6;
}

.footer > span:first-child {
  letter-spacing: 1px;
}

.footer i {
  font-style: normal;
  margin: 0 10px;
  color: #8a5369;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10;
  padding: 12px;
  background: white;
  color: #173d55;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

/* Adaptação às dimensões do ecrã. */

@media (min-width: 1600px) {
  .architecture {
    transform: translateX(-5%);
  }

  .intro {
    padding-top: 60px;
  }
}

@media (max-width: 1050px) {
  .page {
    padding: 28px 32px 22px;
  }

  .layout {
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) 370px;
  }

  h1 {
    font-size: 43px;
  }

  .intro {
    padding-top: 35px;
  }

  .access-card {
    padding: 28px;
  }

  .capabilities {
    max-width: 280px;
    line-height: 1.7;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 24px;
    min-height: 100svh;
  }

  .edition {
    display: none;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 0;
  }

  .intro {
    padding: 0;
  }

  .eyebrow {
    font-size: 9px;
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(34px, 7vw, 46px);
    letter-spacing: -1.5px;
    margin-bottom: 16px;
  }

  .lead {
    font-size: 14px;
  }

  .capabilities,
  .scene-caption {
    display: none;
  }

  .access-card {
    max-width: 460px;
    justify-self: center;
    padding: 28px;
  }

  .architecture {
    width: 180%;
    left: -65%;
    opacity: .55;
  }

  .footer {
    font-size: 9px;
  }

  .footer > span:last-child {
    max-width: 110px;
    text-align: right;
  }

  .brand {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media print {
  .backdrop,
  .header,
  .intro,
  .footer,
  .skip-link {
    display: none;
  }

  .page {
    padding: 0;
  }

  .layout {
    display: block;
  }

  .access-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  input {
    color: #000;
  }
}
