:root{
  --bg: #f3f6fb;
  --card: #ffffff;
  --border: #e6eaf2;
  --text: #0b254a;
  --muted: #6b7280;

  --blue-1:#2aa8ff;
  --blue-2:#0b2a66;

  --btn:#0b2a66;
  --btn-hover:#071f4a;

  --radius:18px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ======= Layout geral centralizado ======= */
.login-page{
  background: #f3f6fb;
}


.login-main{
  display: flex;
  justify-content: center;
  padding: 80px 14px 24px; /* controla distância do topo */
}


/* ======= Card ======= */
.login-card{
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(16,24,40,.10);
  overflow: hidden;
}

/* Topo com gradiente (como na imagem) */
.login-hero{
  position: relative;
  height: 210px;
  background: linear-gradient(100deg, var(--blue-1), var(--blue-2));
}

/* Marca “C” grande à esquerda */
.login-mark{
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  max-width: 58%;
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
}


/* Título à direita */
.login-brand{
  position: absolute;
  right: 28px;
  top: 64px;
  text-align: right;
  color: #fff;
  line-height: 1.05;
}

.login-brand .small{
  font-weight: 500;
  font-size: 44px;
  letter-spacing: .2px;
}

.login-brand .big{
  font-weight: 800;
  font-size: 64px;
  letter-spacing: .4px;
}

/* Corpo */
.login-body{
  padding: 26px 28px 24px;
  text-align: center;
}

.login-body h2{
  margin: 6px 0 18px;
  font-size: 26px;
  font-weight: 800;
}

.login-form{
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.login-input{
  width: 100%;
  height: 52px;
  border-radius: 10px;
  border: 1px solid #cdd3df;
  padding: 0 14px;
  outline: none;
  font-size: 16px;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.login-input:focus{
  border-color: rgba(42,168,255,.75);
  box-shadow: 0 0 0 4px rgba(42,168,255,.18);
}

.login-title{
  margin: 8px 0 20px;
  font-size: 26px;
  line-height: 1.2;
  text-align: center;
}

.login-title strong{
  font-weight: 800;
  color: #0b2a66; /* azul institucional */
}

.login-title span{
  font-weight: 500;
  color: #0b2a66;
}

.login-btn{
  width: auto;               /* NÃO ocupa 100% */
  min-width: 220px;          /* largura visual da imagem */
  padding: 0 28px;           /* respiro lateral */
  height: 52px;
  margin: 16px auto 0;       /* centraliza */
  border-radius: 14px;
  border: 0;
  background: #0b2a66;
  color: #ffffff;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  transition: background-color .15s ease, transform .02s ease;
}

.login-btn:hover{
  background: #071f4a;
}

.login-btn-secondary{
  margin: 10px auto 0;
  background: transparent;
  border: 1px solid #0b2a66;
  color: #0b2a66;
  height: 46px;
  min-width: 220px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background-color .15s ease, color .15s ease;
}

.login-btn-secondary:hover{
  background: #0b2a66;
  color: #ffffff;
}


.login-info{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

.login-info .icon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef6ff;
  border: 1px solid #d7e8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--btn);
  flex: 0 0 auto;
}

.icon-warning{
  width: 36px;
  height: 36px;
  flex: 0 0 auto;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  /* SVG inline – triângulo com exclamação */
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
    <path d='M12 3L2 21h20L12 3z' fill='%23f4f7fb' stroke='%230b2a66' stroke-width='2'/>\
    <rect x='11' y='9' width='2' height='6' rx='1' fill='%230b2a66'/>\
    <circle cx='12' cy='18' r='1.3' fill='%230b2a66'/>\
  </svg>");
}


/* Alerts (mantém seu padrão de sucesso/erro) */
#alert-container{ margin-bottom: 14px; }
.alert{
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 600;
  margin: 0;
}
.alert-success{ background: #eaf4ff; border: 1px solid #cfe6ff; color: #0b2a66; }
.alert-danger{ background: #ffecec; border: 1px solid #ffd0d0; color: #8a0f0f; }

/* Token container */
#token-input-container{
  margin-top: 16px;
  display: none;
}

/* ======= Rodapé ======= */
.login-footer{
  margin-top: 14px;     /* distância REAL do card */
  padding: 8px 12px 16px;
  text-align: center;
  color: #6b7280;
}


.login-footer img{
  max-width: 380px;
  width: 72%;
  height: auto;
}

/* ======= Modal (Bootstrap) ======= */
.modal-content{
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(16,24,40,.18);
}
.modal-title{
  font-weight: 800;
  color: var(--btn);
}

/* ======= Responsivo ======= */
@media (max-width: 480px){
  .login-hero{ height: 190px; }

  .login-mark{
    max-width: 62%;
  }

  .login-brand{ right: 16px; top: 62px; }
  .login-brand .small{ font-size: 34px; }
  .login-brand .big{ font-size: 48px; }

  .login-body{ padding: 22px 18px; }
  .login-body h2{ font-size: 22px; }

  .login-title{
    font-size: 22px;
  }
}

.login-btn-back{
  margin: 8px auto 0;
  background: transparent;
  border: none;
  color: #0b2a66;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  display: block;
}

.login-btn-back:hover{
  color: #071f4a;
}

#back-to-cnpj{
  display: none;
}

/* Float WhatsApp */
.cc-whats{
  position:fixed;right:20px;bottom:20px;width:60px;height:60px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;background:#25d366;color:#fff;
  box-shadow:0 10px 25px rgba(37,211,102,.4);z-index:1050;text-decoration:none
}