body {
  background-color: #f5f5f5;
}

.a {
  background: #fff;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid #dbdbdb;
}

.b {
  width: 100%;
  max-width: 980px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  margin-left: 10px;
}

.logo img {
  position: relative;
  top: -1px;
  margin-right: 7px;
  width: 26px;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}

.logo h1 {
  display: inline-block;
  margin: 10px 0;
  font-size: 24px;
  cursor: pointer;
  font-weight: 700;
}

.login {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: 10px;
}




.content {
  width: 100%;
  max-width: 1000px;
  margin: 10px auto;
  display: flex;
  justify-content: space-between;
}

.left {
  width: 36%;
}

.left img {
  position: relative;
  width: 455px;
  top: 80px;
  ;
  height: auto;
}

.right {
  width: 40%;
  padding-top: 60px;
}

.right h1 {
  font-weight: 500;
}

canvas {
  position: relative;
  left: -55px;
  transform: rotate(-20deg);
}

h1 .verde:hover {
  color: #4caf50;
}

h1 .azul:hover {
  color: #2196f3;
}

h1 .vermelho:hover {
  color: #e91e63;
}

h1 .roxo:hover {
  color: #673ab7;
}

h1 .cinza:hover {
  color: grey;
}









.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab {
  padding: 8px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #333;
  font-weight: 600;
  transition: .2s;
  border-bottom: 2px solid transparent;
}

.tab.active {
  border-bottom: 2px solid #333;
}

.top-tab:hover {
  border-bottom: 2px solid #8f8f8f;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}






/* ==================== LAYOUT PARA TABLET ==================== */
/* Aplica entre 600px e 1100px */
@media (min-width: 760px) and (max-width: 1100px) {

  /* Container principal mais fluido */
  .content {
    width: 90%;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  /* Canvas reduz levemente para caber bem */
  .left canvas {
    transform: rotate(-20deg) scale(0.85);
    left: 0;
    max-width: 100%;
  }

  /* Coluna esquerda (canvas) ocupa 55% no tablet */
  .left {
    display: none;
    width: 55%;
  }

  /* Coluna direita (formulário) ocupa 45% */
  .right {
    position: relative;
    left: 20%;
    width: 60%;
  }

  /* Inputs ficam maiores, porém não 100% */
  .right .custom-input {
    width: 96% !important;
  }

  /* Botão Criar Conta com tamanho mais confortável */
  .right .btn-success {
    padding: 12px 0;
    width: 100%;
  }

  /* Login no topo mantém alinhamento, mas com respiro */
  .login {
    gap: 10px;
  }

  .login .custom-input {
    padding: 9px 10px;
  }

  .login .btn-primary {
    padding: 9px 34px;
  }
}

/* ==================== MOBILE (até 600px) ==================== */
@media (max-width: 760px) {

  .logo img {
    display: none;
  }

  .b {
    position: relative;
    display: inline-block;
  }

  /* Container principal vira coluna */
  .content {
    width: 90%;
    margin-top: 30px;
    flex-direction: column;
    align-items: center;
    /* text-align: center; */
    gap: 35px;
  }

  .left {
    display: none;
  }

  .right {
    position: relative;
    width: 90%;
  }

  /* Canvas reduz e centraliza */
  .left canvas {
    left: 0;
    margin: 0 auto;
    transform: rotate(-20deg) scale(0.65);
    max-width: 100%;
  }

  /* Login do topo vira colunar */
  .login {
    position: relative;
    width: 90%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
    left: 5%;
  }

  /* Inputs da criação de conta = full width */
  .right .custom-input {
    width: 100% !important;
    font-size: 16px;
    /* evita zoom automático no iPhone */
  }

  /* Botão Criar Conta grande e confortável */
  .right .btn-success {
    width: 100%;
    font-size: 16px;
  }

  /* Título centralizado no mobile */
  .right h1 {
    text-align: center;
    margin-bottom: 10px;
  }

  /* Avisa texto mais legível */
  .right p {
    text-align: center;
    font-size: 11px;
    line-height: 1.45;
    margin-top: 10px;
  }

  /* Remove recuo exagerado da logo */
  .logo h1 {
    display: table;
    font-size: 30px;
    letter-spacing: 0.5px;
    margin: 0 auto;
  }
}