/* ======================
   LOGIN PAGE - SNDesk
   ====================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');



body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #fff;
  font-family:'Poppins', sans-serif !important;

}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* ------------------------
   LOGIN - LEFT (Figma)
   largura total fixa: 896 x 560
   ------------------------ */

/* força tamanhos do card para coincidir com Figma */
.login-card {
  width: 896px !important;
  height: 560px !important;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 8px 25px rgba(0,0,0,0.10);
}

/* LADO ESQUERDO - estilo Figma */
/* ===== LADO ESQUERDO - Versão Figma (metade esquerda 448px) ===== */

.login-left {
  /* força a metade esquerda com largura fixa (metade do card 896px) */
  width: 448px !important;
  min-width: 448px;
  max-width: 448px;
  background: var(--bs-bg-70);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 24px;
  gap: 32px;
  box-sizing: border-box;
}

/* container da logo principal (primeira imagem) */
/* assume que a imagem já tem a largura/h altura exata que você quer */
.login-left .logo {
  display: block;
  width: auto;
  max-width: 260px;
  height: auto;
  margin: 0; /
  align-self: flex-start;
  margin-left: 250px;
  margin-top: 50px;
}

/* barra branca (linha horizontal) */
.login-left .barra {
  display: block;
  width: 168px;       /* tamanho da linha no Figma */
  height: auto;
  margin-top: 28px;   /* separação logo → linha */
  margin-bottom: -4px; /* pequena folga antes do texto */
  align-self: center;
  margin-top: -80px; /* centraliza a linha */
}

/* bloco de texto (a imagem com "ECONOMIZAR" ou texto em svg) */
.login-left .logo2 {
  display: block;
  width: 400px;   /* largura do bloco de texto no Figma */
  max-width: 95%;
  height: auto;
  margin-top: 8px;
  align-self: center;
}

/* pequenas correções responsivas quando o card empilhar (mobile) */
@media (max-width: 850px) {
  .login-left {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    padding: 24px;
    gap: 16px;
  }

  .login-left .logo { max-width: 220px; }
  .login-left .barra { width: 140px; }
  .login-left .logo2 { width: 320px; }
}




/* Lado direito */
.login-right {
  flex: 1;
  background: #fefefe;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #4D5357;
}

.login-right h3 {
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: #1d2f59;
    font-family: 'Poppins', sans-serif;
}
.login-right h4 {
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: #1d2f59;
}

.login-right form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Campos */
.login-right::placeholder {
    color: #d1d1d1;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}
.login-right input[type="email"],
.login-right input[type="password"],
.login-right input[type="text"] {
background: #f8f8f8;
    border: 1px solid #CBCBCB;
    border-radius: 4px;
    padding: 10px 10px;
    font-size: 14px;
    color:  #1d2f59;
    outline: none;
    width: 100%;
    height: 30px;
    font-family: 'Poppins', sans-serif;
}

.login-right input:focus {
  border: 2px solid #3ebfdd;
}

.login-right button {
  background: #1d2f59;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500;
    font-size: medium;
}

.login-right button:hover {
  background: #e0a300;
}

.links {
  text-align: center;
  margin-top: 25px;
}

.links a {
  color: var(--bs-primary);
  text-decoration: underline !important;
}

.links a:hover {
  color: var(--bs-primary-hover);
}

@media (max-width: 850px) {
  .login-card {
    flex-direction: column;
    width: 90%;
    height: auto;
  }
}

.forgot-link {
    color: #808285;
    text-decoration: underline !important;
    font-size: 0.95rem;
    font-weight: 500;
    float: right;
}

.forgot-link:hover {
    text-decoration: underline !important;
    cursor: pointer;
}


.login-box label {
    display: block; /* garante que o label fique acima */
    margin-bottom: 1px !important; /* diminui espaço entre label e input */
    font-weight: 500;
}

.login-box .form-group {
    margin-bottom: 25px; /* controla o espaço entre os grupos */
}

.login-box .form-control {
    margin: 0 !important; /* remove espaço indesejado dos inputs */
}


.linha {
    display: flex;
    align-items: center;
    justify-content: space-between; /* mantém os dois nas extremidades */
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px; /* espaço entre texto e checkbox */
    font-weight: 500;
}

.remember input[type="checkbox"] {
    order: 1; /* deixa o checkbox à direita */
}

.campo-senha {
    position: relative;
    width: 100%;
}

.campo-senha input {

}

#togglePassword {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #1d2f59;
    z-index: 5;
}

.remember input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #adb5bd;
    border-radius: 4px;
    background: transparent;
    display: grid;
    place-content: center;
    cursor: pointer;
    margin: 0;
}

/* Check */
.remember input[type="checkbox"]::before {
    content: "✓";
    font-size: 12px;
    color: white; /* aqui você controla */
    transform: scale(0);
    transition: 0.15s;
}

/* Marcado */
.remember input[type="checkbox"]:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.remember input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* Logo mobile escondido no desktop */
.mobile-logo {
    display: none;
    max-width: 140px;
    margin: 0 auto 24px;
}

/* Mobile layout */

@media (max-width: 850px) {

    /* Esconde painel azul */
    .login-left {
        display: none !important;
    }

    /* Card vira só branco */
    .login-card {
        width: 100% !important;
        max-width: 420px;
        border-radius: 16px;
        min-height:80vh; /* deixa o card mais alto no mobile */
    }

    /* Mostra logo */
    .mobile-logo {
        display: block;
    }

    /* Centraliza form */
    .login-right {
        width: 100%;
        padding: 32px 0 !important;
        align-items: center !important;

    }

    .login-right form {
        width: 100% !important;
        max-width: 360px !important;
    }

    .login-right h3 {
        font-size: 26px !important;
    }



}

