:root {
  --kotiria-ink: #18181b;
  --kotiria-charcoal: #242327;
  --kotiria-paper: #f4f1eb;
  --kotiria-white: #ffffff;
  --kotiria-red: #b63a42;
  --kotiria-red-dark: #8f2932;
  --kotiria-green: #718167;
  --kotiria-gray: #68676c;
  --kotiria-border: #cbc6bd;
  --color-accent: var(--kotiria-red);
  --color-accent-hover: var(--kotiria-red-dark);
  --mata-950: var(--kotiria-ink);
  --neutro-800: #333237;
  --neutro-600: var(--kotiria-gray);
  --erro: #a32036;
  --fonte: "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

.login-page {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--kotiria-paper);
  color: var(--neutro-800);
  letter-spacing: 0;
}

.login-layout {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.brand-panel {
  position: relative;
  overflow: hidden;
  color: var(--kotiria-white);
  background-color: var(--kotiria-ink);
  border-bottom: 8px solid var(--kotiria-red);
}

.brand-panel::before {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 23px, rgb(255 255 255 / 0.035) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgb(255 255 255 / 0.035) 23px 24px);
  content: "";
  pointer-events: none;
}

.brand-panel-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 26px 24px 28px;
}

.brand-lockup {
  width: min(235px, 68vw);
  padding: 8px 12px;
  background: var(--kotiria-white);
  border-left: 5px solid var(--kotiria-green);
  border-radius: 20px;
  overflow: hidden;
}

.login-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3200 / 1306;
  object-fit: contain;
}

.brand-copy,
.brand-signature {
  display: none;
}

.woven-mark {
  display: grid;
  width: 42px;
  height: 42px;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  flex: 0 0 auto;
}

.woven-mark i {
  display: block;
  border-radius: 3px;
  background: var(--kotiria-red);
}

.woven-mark i:nth-child(3n + 2) {
  background: var(--kotiria-paper);
}

.woven-mark i:nth-child(4n) {
  background: var(--kotiria-green);
}

.access-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 40px 24px 48px;
  background-color: #31513e;
  background-image: url("/images/login-amazonia-teatro-v1.webp");
  background-position: center;
  background-size: cover;
}

.access-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgb(12 24 16 / 0.24);
  content: "";
  pointer-events: none;
}

.access-panel-inner {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin-inline: auto;
  padding: 30px 24px;
  overflow: hidden;
  border: 1px solid rgb(235 255 242 / 0.34);
  border-radius: 28px;
  background: linear-gradient(145deg, rgb(19 39 29 / 0.10), rgb(9 22 15 / 0.03));
  box-shadow:
    0 24px 64px rgb(2 12 6 / 0.25),
    inset 0 1px 0 rgb(255 255 255 / 0.22),
    inset 0 0 36px rgb(129 185 149 / 0.02);
  -webkit-backdrop-filter: blur(4px) saturate(105%);
  backdrop-filter: blur(4px) saturate(105%);
}

.access-panel-inner::before {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.7), transparent);
  content: "";
  pointer-events: none;
}

.login-heading {
  margin-bottom: 32px;
}

.login-heading,
.login-form label,
.access-footnote {
  text-shadow: 0 2px 5px rgb(0 0 0 / 0.7);
}

.login-kicker {
  margin-bottom: 10px;
  color: #ffc0aa;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.login-heading h1 {
  margin-bottom: 10px;
  color: var(--kotiria-white);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.login-heading > p:last-child {
  color: rgb(255 255 255 / 0.76);
  font-size: 15px;
}

.login-form {
  display: grid;
  gap: 22px;
}

.login-form .field {
  display: grid;
  gap: 8px;
}

.login-form label {
  color: var(--kotiria-white);
  font-size: 14px;
  font-weight: 650;
}

.login-form .required::after {
  color: var(--kotiria-red);
}

.login-form .input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 12px 14px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 14px;
  color: var(--kotiria-white);
  background: rgb(9 24 16 / 0.44);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.1),
    0 8px 24px rgb(3 13 7 / 0.12);
  font-size: 16px;
}

.login-form .input::placeholder {
  color: rgb(255 255 255 / 0.7);
}

.login-form .input:-webkit-autofill,
.login-form .input:-webkit-autofill:hover,
.login-form .input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--kotiria-white);
  caret-color: var(--kotiria-white);
  box-shadow: inset 0 0 0 1000px rgb(18 37 27 / 0.94);
}

.login-form .input:hover {
  border-color: rgb(255 255 255 / 0.5);
}

.login-form .input:focus {
  border-color: var(--kotiria-red);
  outline: 2px solid var(--kotiria-red);
  outline-offset: 2px;
}

.password-control {
  position: relative;
}

.password-control .input {
  padding-right: 88px;
}

.password-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 76px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 11px;
  color: rgb(255 255 255 / 0.82);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--kotiria-white);
  background: rgb(255 255 255 / 0.1);
}

.login-submit.btn {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--kotiria-white);
  background: linear-gradient(90deg, #a92f3c, #c84b51);
  box-shadow: 0 12px 28px rgb(88 13 25 / 0.32);
  font-size: 15px;
  font-weight: 700;
  transition: background-color 150ms ease;
}

.login-submit.btn:hover {
  background: linear-gradient(90deg, #8f2532, #b43842);
  transform: none;
}

.login-submit.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.login-form .form-error {
  padding: 12px 14px;
  border: 1px solid rgb(255 192 202 / 0.5);
  border-radius: 12px;
  color: #fff;
  background: rgb(116 13 31 / 0.68);
  font-size: 14px;
}

.access-footnote {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  color: rgb(255 255 255 / 0.68);
  font-size: 12px;
}

.login-page :focus-visible {
  outline: 2px solid var(--kotiria-red);
  outline-offset: 3px;
}

.login-page [hidden] {
  display: none !important;
}

@media (min-width: 820px) {
  .login-layout {
    grid-template-columns: minmax(420px, 46%) 1fr;
    grid-template-rows: 1fr;
  }

  .brand-panel {
    min-height: 100vh;
    min-height: 100svh;
    border-right: 10px solid var(--kotiria-red);
    border-bottom: 0;
  }

  .brand-panel-inner {
    min-height: 100%;
    grid-template-columns: 1fr;
    align-content: space-between;
    gap: 64px;
    padding: 60px clamp(44px, 6vw, 92px) 54px;
  }

  .brand-lockup {
    width: min(390px, 100%);
    padding: 16px 22px;
    border-left-width: 7px;
  }

  .brand-copy {
    display: block;
    max-width: 500px;
  }

  .brand-kicker {
    margin-bottom: 18px;
    color: #e7a38f;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .brand-copy h2 {
    max-width: 440px;
    margin-bottom: 20px;
    color: var(--kotiria-white);
    font-size: 52px;
    font-weight: 680;
    line-height: 1.04;
    letter-spacing: 0;
  }

  .brand-copy > p:last-child {
    max-width: 390px;
    color: #c9c7cb;
    font-size: 17px;
    line-height: 1.7;
  }

  .brand-signature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #d7d5d8;
    font-size: 13px;
    font-weight: 600;
  }

  .access-panel {
    min-height: 100vh;
    min-height: 100svh;
    padding: 56px clamp(48px, 8vw, 132px);
  }

  .access-panel-inner {
    margin-inline: 0;
    padding: 40px;
  }

  .login-heading {
    margin-bottom: 38px;
  }

  .login-heading h1 {
    font-size: 38px;
  }
}

@media (min-width: 1280px) {
  .brand-copy h2 {
    font-size: 60px;
  }
}

@media (max-width: 359px) {
  .brand-panel-inner,
  .access-panel {
    padding-inline: 18px;
  }

  .login-heading h1 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
