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

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

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #2f241d;
  background:
    radial-gradient(circle at top left, rgba(210, 107, 22, 0.16), transparent 30%),
    linear-gradient(135deg, #f8f3ed 0%, #efe7de 45%, #fdfcfb 100%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.login-brand {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 48px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(68, 34, 14, 0.25), rgba(68, 34, 14, 0.72)),
    url('../images/020824Lancamento_Protocolos_de_consulta_BSB101-2.jpg') center/cover no-repeat;
  overflow: hidden;
}

.login-brand__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(210, 107, 22, 0.48), rgba(137, 67, 9, 0.52)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.24));
  mix-blend-mode: multiply;
}

.login-panel__texture {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: url('../images/diversidade-textura.svg') repeat-x bottom / auto 28px;
  pointer-events: none;
}

.login-panel__texture--top {
  top: 0;
  bottom: auto;
  transform: scaleY(-1);
}

.login-brand__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-brand h1 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.login-brand p {
  margin: 0;
  max-width: 44ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.login-brand__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.login-brand__badges span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 0.88rem;
}

.login-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.login-card {
  width: min(100%, 440px);
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 60px rgba(93, 56, 20, 0.16);
  border: 1px solid rgba(137, 67, 9, 0.08);
  backdrop-filter: blur(8px);
}

.login-branding {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.login-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 6px 20px rgba(137, 67, 9, 0.14);
}

.login-eyebrow {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d26b16;
}

.login-branding h2 {
  margin: 0;
  font-size: 1.55rem;
  color: #2f241d;
}

.login-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1eb;
  color: #8c4a10;
  border: 1px solid #f4d0be;
}

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

.field-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #5f4a3c;
}

.field-group input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #d8cec4;
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  color: #2f241d;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group input:focus {
  outline: none;
  border-color: #d26b16;
  box-shadow: 0 0 0 4px rgba(210, 107, 22, 0.14);
}

.field-group ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #b42318;
  font-size: 0.88rem;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f4a3c;
  cursor: pointer;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: #d26b16;
}

.login-options a,
.login-footer a {
  color: #894309;
  text-decoration: none;
  font-weight: 600;
}

.login-options a:hover,
.login-footer a:hover {
  text-decoration: underline;
}

.login-button {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #d26b16, #894309);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(137, 67, 9, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.login-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 28px rgba(137, 67, 9, 0.26);
}

.login-footer {
  margin: 20px 0 0;
  text-align: center;
  color: #6f5b4c;
}

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

  .login-brand {
    min-height: 280px;
    padding: 32px 24px;
  }

  .login-panel {
    padding: 24px 16px 32px;
  }
}

@media (max-width: 520px) {
  .login-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .login-brand h1 {
    font-size: 2rem;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
  }
}
