:root {
  --login-bg: #07080a;
  --login-card: rgba(12, 13, 15, 0.78);
  --login-card-solid: rgba(10, 11, 13, 0.94);
  --login-ink: #f8f4e8;
  --login-muted: #b7ad9a;
  --login-line: rgba(226, 189, 108, 0.25);
  --login-line-strong: rgba(226, 189, 108, 0.48);
  --login-gold: #d8b76a;
  --login-gold-deep: #9c682d;
  --login-red: #b62d38;
  --login-focus: rgba(216, 183, 106, 0.2);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--login-ink);
  background:
    linear-gradient(115deg, rgba(216, 183, 106, 0.18), transparent 24%),
    linear-gradient(245deg, rgba(182, 45, 56, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(7, 8, 10, 0.8), rgba(7, 8, 10, 0.44) 48%, rgba(7, 8, 10, 0.86)),
    url("../img/fundo.jpg") center / cover no-repeat fixed;
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(120deg, transparent, #000 24%, #000 76%, transparent);
  opacity: 0.32;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px);
}

.login-shell::before,
.login-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(216, 183, 106, 0.16);
}

.login-shell::before {
  inset: 10%;
  transform: skewX(-8deg);
}

.login-shell::after {
  width: min(520px, 76vw);
  height: min(520px, 76vw);
  border-color: rgba(182, 45, 56, 0.18);
  transform: rotate(28deg);
}

.form,
.login-card {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  padding: 34px;
  border: 1px solid var(--login-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 38%),
    var(--login-card);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  text-align: left;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--login-gold), var(--login-red), transparent);
}

.login-card::after {
  content: "";
  position: absolute;
  inset: auto -24% -42% -24%;
  height: 190px;
  background: linear-gradient(90deg, transparent, rgba(216, 183, 106, 0.12), transparent);
  transform: rotate(-7deg);
  pointer-events: none;
}

.login-brand {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-bottom: 26px;
  text-align: center;
}

.logo {
  display: block;
  width: min(184px, 62vw);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.5));
}

.login-brand span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(216, 183, 106, 0.26);
  border-radius: 6px;
  background: rgba(216, 183, 106, 0.08);
  color: var(--login-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form form,
.form .input {
  position: relative;
  z-index: 1;
}

.form .input {
  display: grid;
  gap: 16px;
}

.form .input .inputBox {
  display: grid;
  gap: 8px;
}

.form .input .inputBox label {
  color: var(--login-muted);
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0;
}

.form .input .inputBox input {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  outline: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(4, 5, 7, 0.76);
  color: var(--login-ink);
  font: 600 1rem "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  padding: 0 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.18);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form .input .inputBox input::placeholder {
  color: rgba(248, 244, 232, 0.38);
  font-size: 0.95rem;
}

.form .input .inputBox input:focus {
  border-color: var(--login-line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent),
    rgba(6, 7, 9, 0.88);
  box-shadow:
    0 0 0 4px var(--login-focus),
    0 16px 28px rgba(0, 0, 0, 0.26);
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 52px;
  margin-top: 4px;
  padding: 0 16px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, var(--login-gold), var(--login-gold-deep) 58%, var(--login-red));
  color: #fff8e7;
  cursor: pointer;
  font: 850 0.98rem "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow:
    0 18px 34px rgba(156, 104, 45, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-submit span[aria-hidden="true"] {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.16);
  font-size: 1rem;
  line-height: 1;
}

.login-submit:hover,
.login-submit:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow:
    0 22px 40px rgba(156, 104, 45, 0.4),
    0 0 0 4px var(--login-focus),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.login-submit:active {
  transform: translateY(0);
  box-shadow:
    0 12px 26px rgba(156, 104, 45, 0.28),
    inset 0 2px 8px rgba(0, 0, 0, 0.22);
}

@media (min-width: 860px) {
  .login-shell {
    justify-items: end;
  }

  .form,
  .login-card {
    margin-right: clamp(16px, 7vw, 96px);
  }
}

@media (max-width: 520px) {
  body {
    background-attachment: scroll;
  }

  .login-shell {
    min-height: 100svh;
    padding: 18px;
  }

  .login-shell::before,
  .login-shell::after {
    display: none;
  }

  .form,
  .login-card {
    width: 100%;
    padding: 26px 20px;
  }

  .logo {
    width: min(166px, 70vw);
  }
}
