/* Conexão Mundo — login (adaptado de styles.css / auth.jsx) */

:root {
  --pb-blue: #0b3d91;
  --pb-blue-700: #0a3478;
  --pb-blue-600: #1351b4;
  --pb-blue-500: #2563c8;
  --pb-blue-100: #e6eef9;
  --pb-blue-50: #f3f7fc;
  --pb-red: #c8102e;
  --pb-gold: #f4b400;
  --ink-900: #0e1216;
  --ink-800: #1a1f26;
  --ink-700: #2b3340;
  --ink-600: #475061;
  --ink-500: #6b7488;
  --ink-400: #94a0b4;
  --ink-300: #c9d1de;
  --ink-200: #e3e7ef;
  --ink-150: #ecf0f6;
  --ink-100: #f4f6fa;
  --ink-50: #f9fafd;
  --paper: #ffffff;
  --font-display: "Newsreader", Georgia, serif;
  --font-ui: "Manrope", system-ui, sans-serif;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --shadow-lg: 0 14px 40px rgba(13, 34, 71, 0.12), 0 2px 6px rgba(13, 34, 71, 0.06);
}

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

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  flex-direction: column;
}

/* ALERTA */

.alt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid;
  font-size: 16px;
  line-height: 1.5;
}

.alt--success {
  background: #eaf3de;
  border-color: #639922;
  color: #27500a;
}

html,
body.login-body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  background: var(--ink-100);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pb-blue-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Layout */
.login-wrap {
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink-100);
  padding: 48px;
  gap: 0;
  align-items: stretch;
}

/* Card único arredondado com painel azul à esquerda (PDF) */
.login-wrap>.login-aside,
.login-wrap>.login-main {
  border-radius: 0;
}

.login-wrap .login-aside {
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

.login-wrap .login-main {
  background: var(--paper);
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 30px 60px rgba(13, 34, 71, 0.10);
}

.login-wrap .login-aside {
  box-shadow: 0 30px 60px rgba(13, 34, 71, 0.10);
}

.login-aside {
 /*  background: linear-gradient(135deg,
      var(--pb-blue-700) 0%,
      var(--pb-blue) 50%,
      var(--pb-blue-600) 100%); */
      background: #E8EFFA; 
  color: #fff;
  padding: 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, #ffffff14 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, #ffffff10 0%, transparent 50%);
  pointer-events: none;
}

.login-aside__brand,
.login-aside__quote,
.login-aside__footer {
  position: relative;
}

.login-aside__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-aside__logo {
  display: block;
  height: 46px;
  width: auto;
}

.login-aside__brand-divider {
  width: 1px;
  height: 38px;
  background: #ffffff33;
  flex-shrink: 0;
}

.login-aside__brand-text {
  line-height: 1.15;
}

.login-aside__eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffffaa;
  font-weight: 600;
}

.login-aside__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.login-aside__quote {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 440px;
}

.login-aside__quote em {
  color: var(--pb-gold);
  font-style: normal;
  font-weight: 600;
}

.login-aside__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #ffffffcc;
}

.login-aside__footer>div {
  flex: 1;
}

.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.login-card__badge-wrap {
  margin-bottom: 24px;
}

.div-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  margin-bottom: 32px;
}

.login-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.01em;
}

.login-card .sub {
  color: var(--ink-500);
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.5;
}

/* Alertas */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 0 20px;
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.5;
  animation: alert-in 0.35s ease-out;
}

.alert--danger {
  background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
  border: 1px solid #fecaca;
  color: #9f1239;
  box-shadow:
    0 1px 2px rgba(193, 16, 46, 0.06),
    inset 3px 0 0 var(--pb-red);
}

.alert__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: rgba(200, 16, 46, 0.1);
  color: var(--pb-red);
}

.alert__message {
  margin: 0;
  padding-top: 7px;
  font-weight: 500;
  color: #881337;
}

@keyframes alert-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card__signup {
  justify-content: center;
  font-size: 13.5px;
  gap: 6px;
  flex-wrap: wrap;
}

.login-card__signup>span {
  color: var(--ink-600);
}

.login-card__role-switcher {
  margin-top: 32px;
}

.login-card__role-switcher:empty {
  display: none;
}

/* Utilities */
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.row--sb {
  justify-content: space-between;
}

.col {
  display: flex;
  flex-direction: column;
}

.login-form {
  gap: 16px;
}

.login-form__options {
  font-size: 13px;
}

.login-form__remember {
  gap: 8px;
  cursor: pointer;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--ink-150);
  color: var(--ink-700);
  border: 1px solid var(--ink-200);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--info {
  color: var(--pb-blue);
  background: var(--pb-blue-100);
  border-color: #cbdbf3;
}

/* Form */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-800);
}

.field__label .req {
  color: var(--pb-red);
  font-weight: 700;
}

.input {
  background: var(--paper);
  border: 1px solid var(--ink-300);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 14px;
  transition: 0.12s;
  outline: none;
  width: 100%;
}

/* .input:focus {
  box-shadow: 0 0 0 2px rgba(64, 109, 173, 0.15);
} */

.input::placeholder {
  color: var(--ink-400);
}

.input-password-wrap {
  position: relative;
  width: 100%;
}

.input-password-wrap .input--password {
  padding-right: 44px;
}

.input-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-500);
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}

.input-password-toggle:hover {
  color: var(--ink-700);
  background: var(--ink-100);
}

.input-password-toggle:focus-visible {
  outline: 2px solid var(--pb-blue);
  outline-offset: 2px;
}

.password-toggle-icon__slash {
  display: none;
}

.input-password-toggle.is-password-visible .password-toggle-icon__slash {
  display: block;
}
.input-password-wrap .input--password:focus {
  box-shadow: 0 0 0 2px rgba(64, 109, 173, 0.15);
}
/* .input-password-wrap .input--password:focus {
  border-color: var(--pb-blue);
  box-shadow: 0 0 0 3px var(--pb-blue-100);
} */

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  background: var(--paper);
  border: 1px solid var(--ink-300);
  color: var(--ink-800);
  transition: 0.12s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--pb-blue);
  border-color: var(--pb-blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--pb-blue-700);
  border-color: var(--pb-blue-700);
}

.btn--block {
  width: 100%;
}

.btn__icon {
  flex-shrink: 0;
}

/* Divider */
.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.divider-or::before,
.divider-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink-200);
}

/* ===== Variante PDF: brasão centralizado no painel azul ===== */
.login-aside--brand-center {
  align-items: center;
  justify-content: center;
  padding: 48px 0 48px 0;
}

.login-aside__brand--center {
  flex-direction: column;
  align-items: center;
  gap: 24px;
  justify-content: center;
  text-align: center;
}

.login-aside__logo--lg {
  width: min(82%, 320px);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.20));
}

.brand-text--center {
  font-family: Manrope;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  line-height: 1.35;
  max-width: min(82%, 320px);
}

.login-aside__name--lg {
  font-family: var(--font-ui);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: #ffffff;
  text-transform: none;
  text-align: center;
}

.login-aside__sub {
  margin-top: 0;
  font-size: 12px;
  font-weight: 700;
  color: #ffffffbb;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-align: center;
}

/* ===== Card de login (form direito) ===== */
.login-card__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink-900);
  text-align: center;
  max-width: 340px;
}

.login-card__subtitle {
  font-size: 14px;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.5;
  text-align: center;
  max-width: 320px;
}

/* Inputs do PDF: fundo cinza-claro, sem bordas evidentes */
.login-form .input,
.cadastro-form .input {
  background: #F1F4F6;
  border-radius: 8px;
  padding: 12px 14px;
   border: 1px solid  #0e121613;
}

.login-form .input:focus,
.cadastro-form .input:focus {
  box-shadow: 0 0 0 2px rgba(64, 109, 173, 0.15);
}

/* .login-form .input:focus,
.cadastro-form .input:focus {
  background: var(--paper);
  border-color: var(--pb-blue);
} */

.login-form__forgot {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
  margin-bottom: 4px;
  font-size: 13px;
}

.login-form__forgot a {
  color: var(--ink-500);
  font-weight: 500;
}

.login-form__forgot a:hover {
  color: var(--pb-blue);
}

/* Botão primário */
.login-form .btn--primary,
.cadastro-form .btn--primary {
  background: #14489D;
  border-color: #14489D;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 600;
}

.login-form .btn--primary:hover,
.cadastro-form .btn--primary:hover {
  background: #103a82;
  border-color: #103a82;
}

/* Botão secundário/voltar */
.login-form .btn--soft,
.cadastro-form .btn--soft {
  background: #E5E7EB;
  border-color: #E5E7EB;
  color: #4B5563;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 600;
}

.login-form .btn--soft:hover,
.cadastro-form .btn--soft:hover {
  background: #D1D5DB;
  border-color: #D1D5DB;
  color: #1F2937;
  text-decoration: none;
}

.login-form__signup-btn {
  margin-top: 6px;
}

@media (max-width: 980px) {
  .login-wrap {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .login-aside {
    display: none;
  }

  .login-main {
    padding: 32px 24px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .login-card h2 {
    font-size: 24px;
  }
}

/* Role switcher (demo) */
.role-switcher {
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: flex;
  gap: 2px;
  font-size: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.role-switcher__label {
  padding: 6px 12px 6px 14px;
  color: #ffffff99;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.role-switcher button {
  padding: 7px 14px;
  border-radius: var(--r-md);
  color: #fff;
  font-weight: 500;
  border: none;
  background: transparent;
  transition: 0.12s;
}

.role-switcher button:hover {
  background: #ffffff14;
}

.role-switcher button.active {
  background: var(--pb-blue);
  font-weight: 600;
}

@media (max-width: 640px) {
  .role-switcher {
    justify-content: center;
  }
}