:root {
  --login-bg: #f3f5ef;
  --login-panel: rgba(255, 255, 255, 0.82);
  --login-panel-border: rgba(124, 151, 129, 0.18);
  --login-card: rgba(255, 255, 255, 0.92);
  --login-card-border: rgba(123, 152, 130, 0.16);
  --login-text: #213126;
  --login-text-soft: #5b6f63;
  --login-text-muted: #78897f;
  --login-accent: #6d987b;
  --login-accent-strong: #4f755d;
  --login-gold: #d6bf84;
  --login-danger: #c97f7f;
  --login-info: #90aebc;
  --login-shadow: 0 30px 80px rgba(40, 57, 45, 0.16);
  --login-radius-xl: 32px;
  --login-radius-lg: 24px;
  --login-radius-md: 18px;
  --login-font-ui: "Segoe UI", "Inter", "Helvetica Neue", sans-serif;
  --login-font-display: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body,
button,
input {
  font-family: var(--login-font-ui);
}

body.login-body {
  min-height: 100vh;
  color: var(--login-text);
  background:
    radial-gradient(circle at top left, rgba(214, 191, 132, 0.22), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(109, 152, 123, 0.20), transparent 24%),
    linear-gradient(135deg, #eef2ea 0%, #f8faf5 48%, #edf2ef 100%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr minmax(420px, 520px);
  padding: 28px;
  gap: 24px;
}

.login-showcase,
.login-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--login-radius-xl);
  border: 1px solid var(--login-panel-border);
  box-shadow: var(--login-shadow);
  backdrop-filter: blur(12px);
}

.login-showcase {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  min-height: calc(100vh - 56px);
  background:
    linear-gradient(135deg, rgba(29, 52, 38, 0.92) 0%, rgba(51, 84, 63, 0.84) 58%, rgba(89, 120, 98, 0.72) 100%),
    url("/static/img/Novo.jpg") center/cover no-repeat;
  color: #f7fbf8;
}

.login-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(214, 191, 132, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(5, 10, 7, 0.04) 0%, rgba(7, 12, 8, 0.22) 100%);
  pointer-events: none;
}

.login-showcase > * {
  position: relative;
  z-index: 1;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: fit-content;
  max-width: 100%;
}

.login-brand img {
  width: 138px;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(20, 37, 27, 0.18));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--login-gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-copy {
  max-width: 700px;
}

.login-copy h1 {
  margin: 0;
  font-family: var(--login-font-display);
  font-size: clamp(2.8rem, 4.8vw, 5rem);
  line-height: 0.97;
  letter-spacing: -0.04em;
}

.login-copy .lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(245, 250, 246, 0.82);
  font-size: 1.05rem;
  line-height: 1.75;
}

.login-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.login-highlights article {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-highlights i {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(214, 191, 132, 0.16);
  color: #f7e3aa;
}

.login-highlights strong,
.login-highlights span {
  display: block;
}

.login-highlights strong {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.login-highlights span {
  color: rgba(243, 248, 244, 0.76);
  font-size: 0.89rem;
  line-height: 1.55;
}

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at top, rgba(109, 152, 123, 0.12), transparent 28%),
    var(--login-panel);
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 30px;
  border-radius: var(--login-radius-lg);
  border: 1px solid var(--login-card-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(250,252,250,0.92) 100%);
  box-shadow: 0 22px 50px rgba(52, 72, 58, 0.12);
}

.login-signup-callout {
  width: 100%;
  max-width: 420px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(123, 152, 130, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 250, 246, 0.9) 100%);
  box-shadow: 0 16px 34px rgba(52, 72, 58, 0.08);
}

.login-signup-callout i {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 16px;
  background: rgba(109, 152, 123, 0.12);
  color: var(--login-accent-strong);
}

.login-signup-callout strong,
.login-signup-callout a {
  display: block;
}

.login-signup-callout strong {
  color: var(--login-text);
  font-size: 0.96rem;
}

.login-signup-callout a {
  margin-top: 4px;
  color: var(--login-accent-strong);
  font-weight: 800;
}

.login-signup-callout a:hover {
  text-decoration: underline;
}

.login-card-top h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.login-card-top p:last-child {
  margin: 14px 0 0;
  color: var(--login-text-soft);
  line-height: 1.65;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.login-form label {
  color: var(--login-text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.input-wrap {
  position: relative;
}

.input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #7d9186;
}

.input-wrap input {
  width: 100%;
  height: 56px;
  padding: 0 16px 0 46px;
  border: 1px solid rgba(122, 149, 129, 0.22);
  border-radius: 18px;
  background: #fbfcfa;
  color: var(--login-text);
  font-size: 0.98rem;
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease,
    background 0.16s ease;
}

.input-wrap input:focus {
  border-color: rgba(109, 152, 123, 0.52);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(109, 152, 123, 0.14);
}

.login-submit {
  margin-top: 10px;
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #6f9f7e 0%, #557963 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(92, 129, 104, 0.24);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 36px rgba(92, 129, 104, 0.28);
  filter: saturate(1.03);
}

.login-footnote {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(123, 152, 130, 0.14);
  color: var(--login-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.login-footnote i {
  color: var(--login-accent);
  margin-top: 2px;
}

.login-footnote a {
  color: var(--login-accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.login-footnote a:hover {
  text-decoration: underline;
}

.login-flashes {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-flash {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  color: var(--login-text);
  box-shadow: 0 10px 24px rgba(52, 72, 58, 0.10);
}

.login-flash-danger {
  border-color: rgba(201, 127, 127, 0.24);
}

.login-flash-success,
.login-flash-info {
  border-color: rgba(109, 152, 123, 0.22);
}

@media (max-width: 1180px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-showcase {
    min-height: auto;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .login-shell {
    padding: 16px;
    gap: 16px;
  }

  .login-showcase,
  .login-panel {
    border-radius: 24px;
  }

  .login-showcase {
    padding: 24px;
  }

  .login-highlights {
    grid-template-columns: 1fr;
  }
}

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

  .login-card {
    padding: 22px;
  }

  .login-brand {
    width: fit-content;
  }

  .login-brand img {
    width: 126px;
  }

  .login-copy h1 {
    font-size: 2.3rem;
  }

  .login-copy .lead {
    font-size: 0.98rem;
  }
}
