:root {
  color: #222;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  background: url("/images/login-background.png") center / cover no-repeat fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.5);
}

.login-card {
  width: min(100%, 450px);
  padding: 2.5rem;
  position: relative;
  z-index: 1;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0.3rem 1.25rem rgba(0, 0, 0, 0.3);
  backdrop-filter: saturate(180%) blur(10px);
}

.brand {
  display: grid;
  justify-content: center;
  gap: 2px;
  margin-bottom: 2.2rem;
  text-align: center;
  letter-spacing: 0.12em;
  line-height: 1;
}

.brand-contopo {
  color: #36aeda;
  font-size: 30px;
  font-weight: 800;
}

.brand-metricas {
  color: #f49a35;
  font-size: 17px;
  font-weight: 700;
}

.alert {
  margin: 0 0 20px;
  padding: 11px 14px;
  border: 1px solid #f1b9bd;
  border-radius: 5px;
  background: #fdebed;
  color: #8e2029;
  font-size: 14px;
}

label {
  display: block;
  margin: 0 0 7px;
  color: #444;
  font-size: 0.92rem;
  font-weight: 700;
}

input {
  width: 100%;
  height: 43px;
  margin: 0 0 19px;
  padding: 9px 12px;
  border: 1px solid #cbd1d6;
  border-radius: 0.375rem;
  outline: none;
  color: #222;
  font: inherit;
}

input:focus {
  border-color: #696cff;
  box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.25);
}

.password-field {
  position: relative;
}

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

.show-password {
  position: absolute;
  top: 3px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 37px;
  border: 0;
  background: transparent;
  color: #697a8d;
  cursor: pointer;
}

.show-password svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.show-password.is-visible .eye-slash {
  display: none;
}

.show-password:hover,
.show-password:focus-visible {
  color: #566a7f;
  outline: none;
}

.submit {
  width: 100%;
  height: 45px;
  border: 0;
  border-radius: 0.375rem;
  background: #696cff;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
}

.submit:hover,
.submit:focus-visible {
  background: #5f61e6;
}

@media (max-width: 480px) {
  .login-card {
    padding: 32px 25px;
  }
}
