* {
  box-sizing: border-box;
}

/* VARIAVEIS DE SOMBRA INFERIOR MAIS INTENSAS PARA MELHOR VISIBILIDADE */
:root,
html[data-theme="light"], [data-theme="light"] {
  --cor-sombra-caixa: rgba(0, 0, 0, 0.25);
}
html[data-theme="purple"], [data-theme="purple"] {
  --cor-sombra-caixa: rgba(43, 8, 77, 0.6);
}
html[data-theme="dark"], [data-theme="dark"] {
  --cor-sombra-caixa: rgba(0, 0, 0, 0.85);
}

body {
  font-family: 'Roboto', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background: var(--cor-fundo);
  padding: 20px;
  transition: background-color 0.4s ease;
}

/* SELETOR DE TEMAS - DESIGN EM CÁPSULA (GLASSMORPHISM) */
.theme-switcher {
  position: absolute;
  top: 25px;
  right: 25px;
  display: flex;
  background: rgba(150, 150, 150, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--cor-divisor);
  padding: 5px;
  border-radius: 40px;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.theme-switcher button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid transparent; 
  background: transparent;
  cursor: pointer;
  color: var(--texto-base); 
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Animação suave para o ícone SVG interno */
.theme-switcher button svg {
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Efeito Hover Geral (antes de clicar) */
.theme-switcher button:hover {
  transform: scale(1.15);
  background: rgba(150, 150, 150, 0.15);
}

.theme-switcher button:hover svg {
  transform: rotate(10deg);
}

/* Base do botão Ativo (apenas sombra e escala) */
.theme-switcher button.active {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: scale(1);
}

/* CORES ESPECÍFICAS PARA CADA TEMA (ATIVO & HOVER) */
.theme-switcher button[value="light"].active,
.theme-switcher button[value="light"]:hover {
  color: #FFD700; /* Amarelo Dourado */
}
.theme-switcher button[value="light"].active {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
}

.theme-switcher button[value="purple"].active,
.theme-switcher button[value="purple"]:hover {
  color: #C77DFF; /* Lilás Brilhante */
}
.theme-switcher button[value="purple"].active {
  background: rgba(199, 125, 255, 0.15);
  border-color: rgba(199, 125, 255, 0.4);
}

.theme-switcher button[value="dark"].active,
.theme-switcher button[value="dark"]:hover {
  color: #00BFFF; /* Azul "Deep Sky" */
}
.theme-switcher button[value="dark"].active {
  background: rgba(0, 191, 255, 0.15);
  border-color: rgba(0, 191, 255, 0.4);
}

/* WRAPPER PARA ALINHAR LADO A LADO */
.login-wrapper {
  display: flex;
  align-items: center; 
  justify-content: center;
  gap: 50px;
  width: 100%;
  max-width: 920px;
  z-index: 10;
}

/* REGRAS COMPARTILHADAS (Sombra inferior redonda e distante) */
.login-box, .info-box {
  flex: 1;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  
  /* SOMBRA REDONDA APENAS NA BASE COM DISTÂNCIA */
  box-shadow: 0 40px 30px -20px var(--cor-sombra-caixa);
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* CAIXA DE LOGIN COMPACTA */
.login-box {
  border: 1px solid var(--cor-divisor);
  background-color: var(--cor-fundo);
  text-align: center;
  overflow: hidden;
  position: relative;
  
  padding-top: 110px; 
  padding-bottom: 90px; 
  
  --img-topo-frente: url('../Imagens/up-login1L.png');
  --img-topo-fundo: url('../Imagens/up-login2L.png');
  --img-rodape: url('../Imagens/rodape-login.png');

  --tamanho-topo-frente: 100% 80px; 
  --tamanho-topo-fundo: 80% 150px;
  --tamanho-rodape: 130% 160px;

  --pos-topo-frente: center top; 
  --pos-topo-fundo: right top;
  --pos-rodape: 10% bottom;

  background-image: var(--img-topo-frente), var(--img-topo-fundo), var(--img-rodape);
  background-size: var(--tamanho-topo-frente), var(--tamanho-topo-fundo), var(--tamanho-rodape);
  background-position: var(--pos-topo-frente), var(--pos-topo-fundo), var(--pos-rodape);
  background-repeat: no-repeat, no-repeat, no-repeat;
}

/* CAIXA DE INFORMAÇÕES (DIREITA - SEM BORDA E COM ANIMAÇÃO) */
.info-box {
  border: none;
  background: linear-gradient(135deg, var(--cor-fundo), rgba(138, 43, 226, 0.05)); 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
  
  /* Animação Profissional de Flutuação */
  animation: floatEffect 6s ease-in-out infinite;
}

/* ANIMAÇÃO DE FLUTUAÇÃO */
@keyframes floatEffect {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.info-logo {
  width: 140px;
  margin-bottom: 0;
  filter: drop-shadow(0 12px 18px var(--cor-sombra-caixa));
  transition: transform 0.4s ease;
}

.info-logo:hover {
  transform: scale(1.08) rotate(-4deg);
}

.info-title {
  font-size: 32px;
  color: var(--titulo-principal);
  margin: 0 0 15px 0;
  line-height: 1.1;
  font-weight: 800;
}

.info-message {
  font-size: 15px;
  color: var(--texto-base);
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

.info-end {
  text-align: right;
  margin-top: 10px;
  font-size: 12px;
  text-decoration: underline;
  font-style: italic;
  color: var(--cor-roxo-suave);
  font-weight: 600;
  width: 100%;
}

/* TROCA DINÂMICA DE IMAGENS POR TEMA  */
html[data-theme="purple"] .login-box,
[data-theme="purple"] .login-box {
  --img-topo-frente: url('../Imagens/up-login1P.png');
  --img-topo-fundo: url('../Imagens/up-login2P.png');
  --img-rodape: url('../Imagens/rodape-loginP.png');
}

html[data-theme="dark"] .login-box,
[data-theme="dark"] .login-box {
  --img-topo-frente: url('../Imagens/up-login1P.png'); 
  --img-topo-fundo: url('../Imagens/up-login2P.png');
  --img-rodape: url('../Imagens/rodape-loginP.png');
}

/* CONTEÚDO INTERNO E FORMULÁRIO */
.content {
  padding: 0 30px;
  position: relative;
  z-index: 2;
}

.logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -95px; 
  margin-bottom: 5px;
}

.logo-frente {
  width: 110px; 
}

.logo-box h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 600;
  color: var(--titulo-principal);
}

h2 {
  color: var(--cor-roxo-principal);
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 10px;
  text-align: left;
}

/* INPUTS E LABELS */
label {
  display: block;
  text-align: left;
  font-size: 13px; 
  color: var(--texto-base);
  margin-bottom: 4px;
  font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  background-color: transparent;
  width: 100%;
  padding: 10px;
  font-size: 12.5px;
  border: 1px solid var(--cor-divisor);
  border-radius: 8px;
  margin-bottom: 12px;
  color: var(--texto-base);
}

.password-field {
  position: relative;
  margin-bottom: 12px;
}

.password-field input {
  margin-bottom: 0;
  padding-right: 48px;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--texto-secundario);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
  background: rgba(93, 42, 134, 0.12);
  color: var(--cor-roxo-principal);
  outline: none;
}

.password-toggle-icon {
  width: 18px;
  height: 18px;
  display: none;
}

.password-toggle-btn .icon-visible {
  display: block;
}

.password-toggle-btn.is-visible .icon-visible {
  display: none;
}

.password-toggle-btn.is-visible .icon-hidden {
  display: block;
}

input:focus {
  border-color: var(--input-focus);
  outline: none;
  box-shadow: var(--sombra-input-focus);
}

input::placeholder {
  color: var(--input-placeholder);
}

.error-msg {
    color: var(--status-incorrect-text);
    font-size: 12px;
    margin-top: -3px; 
    margin-bottom: 12px;
    display: none; 
    background: var(--status-incorrect-bg);
    padding: 5px 10px;
    border-radius: 4px;
}

input.error {
    border-color:  var( --status-incorrect-border);
    transition: border 0.3s;
}

 

/* ALINHAMENTO DE LEMBRAR SENHA + ESQUECEU SENHA */
.login-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--texto-base);
}


.checkbox-label {
  margin-bottom: 0;
  font-weight: normal;
  cursor: pointer;
}


[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--cor-roxo-principal);
}


.forgot-password {
  font-size: 13px;
  color: var(--texto-base);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.forgot-password:hover {
  color: var(--cor-indigo-destaque);
  text-decoration: underline;
  opacity: 0.8;
}

/* BOTÕES DE AÇÃO */
.botao {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.botao button {
  flex: 1;
  padding: 10px; 
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.botao button:active {
  transform: scale(0.95);
}

/* SERÁ IMPLEMENTADO FUTURAMENTE */
/* .divider {
  display: flex; 
  align-items: center;
  justify-content: center;
  margin: 10px 0 10px;
}

.line {
  flex: 1;
  height: 1px;
  background-color: var(--cor-divisor);
  margin: 0 10px;
}

.divider-text {
  font-size: 13px;
  white-space: nowrap;
  font-weight: 500;
}

.social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 25px;
  position: relative;
  z-index: 10;
}

.social img.google {
  width: 40px;
  height: 40px;
  object-fit: contain;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid var(--cor-divisor);
  padding: 6px;
}

.img-wrapper.facebook img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid var(--cor-divisor);
  padding: 6px;
}

.facebook-link {
  cursor: pointer;
  display: inline-block;
} */

/* RODAPÉ DO LOGIN */
.footer-text {
  font-size: 10px;
  color: var(--cor-branco);
  text-align: center;
  position: absolute;
  bottom: 10px; 
  left: 0;
  right: 0;
  padding: 0 20px;
  z-index: 10; 
}

.footer-text a {
  color: var(--cor-branco);
  font-weight: bold;
  text-decoration: none;
}

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

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){
  background-color: #5d2a86;
}

/* Cor base do botão do SweetAlert e o Hover */
.meu-botao-swal {
  background-color: #670b88 !important;
  border-color: #670b88 !important;
}

.meu-botao-swal:hover {
  background-color: #520983 !important;
  border-color: #520983 !important;
}


@media (min-width: 1440px) {
.login-wrapper {
    max-width: 1100px;
    gap: 80px;
  }

  .login-box, .info-box {
    max-width: 550px;
  }

  .login-box {
    padding-top: 140px; 
    padding-bottom: 120px;
    /* Imagens levemente mais altas para cobrir o espaço extra */
    --tamanho-topo-frente: 100% 120px; 
    --tamanho-topo-fundo: 80% 190px;
    --tamanho-rodape: 130% 190px;
  }

  .info-box {
    padding: 60px;
  }

  .info-title {
    font-size: 38px;
    margin-bottom: 20px;
  }

  .info-message {
    font-size: 18px;
    line-height: 1.8;
  }

  .logo-frente {
    width: 140px;
  }

  .logo-box h1 {
    font-size: 32px;
    margin-bottom: 15px;
  }

  h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  label {
    font-size: 15px;
    margin-bottom: 6px;
  }

  input[type="email"],
  input[type="password"],
  input[type="text"] {
    padding: 14px;
    font-size: 14.5px;
    margin-bottom: 18px;
  }

    .password-field input {
      margin-bottom: 0;
    }

  .botao button {
    padding: 14px;
    font-size: 16px;
  }

  .footer-text {
    font-size: 12px;
  }
}


@media (max-width: 1024px) {
.login-wrapper {
    max-width: 850px;
    gap: 30px;
  }

  .login-box, .info-box {
    min-height: 630px;
    max-width: 500px;
  }

  .login-box {
    padding-top: 90px;
    padding-bottom: 80px;
    --tamanho-topo-frente: 100% 90px; 
    --tamanho-topo-fundo: 80% 150px;
    --tamanho-rodape: 130% 150px;
  }

  h2{
    margin-top: 20px;
  }

  .content {
    padding: 0 25px;
  }

  .logo-box {
    margin-top: -55px;
  }

  .logo-frente {
    width: 110px;
  }

  .info-box {
    padding: 30px;
  }

  .info-title {
    font-size: 26px;
  }

  .info-message {
    font-size: 14px;
  }

  /* INPUTS E LABELS */
    label {
    margin-bottom: 4px;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"] {
    padding: 12px;
    font-size: 13px;
    margin-bottom: 20px;
    }

    .password-field input {
      margin-bottom: 0;
    }


    /* ALINHAMENTO DE LEMBRAR SENHA + ESQUECEU SENHA */
    .login-options-row {
    margin-top: 5px;
    margin-bottom: 40px;
    }

    [type="checkbox"] {
    width: 18px;
    height: 18px;
    }

    .footer-text {
    font-size: 10px;
    bottom: 8px; 
    }
   
}


@media (max-width: 768px) {
body {
    padding: 30px 15px;
  }

 .login-wrapper {
    max-width: 750px;
    gap: 30px;
  }

  .login-box, .info-box {
    min-height: 600px;
    max-width: 340px;
  }

  .login-box {
    padding-top: 90px;
    padding-bottom: 80px;
    --tamanho-topo-frente: 100% 85px; 
    --tamanho-topo-fundo: 80% 140px;
    --tamanho-rodape: 130% 140px;
  }

  h2{
    margin-top: 20px;
  }


  .logo-box {
    margin-top: -55px;
  }

  .logo-frente {
    width: 100px;
  }

  .info-box {
    padding: 20px;
  }

  .info-title {
    font-size: 24px;
  }

  .info-message {
    font-size: 13px;
  }

  /* INPUTS E LABELS */
    label {
    margin-bottom: 4px;
    font-size: 12px;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"] {
    padding: 10px;
    font-size: 12.5px;
    margin-bottom: 20px;
    }

    .password-field input {
      margin-bottom: 0;
    }


    /* ALINHAMENTO DE LEMBRAR SENHA + ESQUECEU SENHA */
    .login-options-row {
    margin-top: 5px;
    margin-bottom: 40px;
    font-size: 12px;
    }

    .checkbox{
        gap: 4px;
    }

    [type="checkbox"] {
    width: 15px;
    height: 15px;
    }

    .info-end{
    font-size: 11px;
    }

    .botao button {
    padding: 12px;
    font-size: 13px;
    }

    .footer-text {
    font-size: 10px;
    bottom: 7px; 
    }
   
}


@media (max-width: 580px) {
body {
    padding: 0;
    align-items: flex-start; 
  }

  .login-wrapper {
    gap: 0;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    height: 100vh;
  }

  /* Oculta completamente a caixa de informações */
  .info-box {
    display: none;
  }

  /* Expansão e limpeza visual da caixa de login */
  .login-box {
    width: 100vw;
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    display: flex;
    border: none;
    box-shadow: none;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px; 
    padding-bottom: 40px;

    /* Imagens de fundo ajustadas apenas na altura para não invadir os inputs */
    --tamanho-topo-frente: 100% 100px; 
    --tamanho-topo-fundo: 80% 180px;
    --tamanho-rodape: 130% 190px;
  }

  .content {
    padding: 0 30px;
  }

  .logo-box {
    margin-top: 0; 
    margin-bottom: 15px;
  }

  .logo-frente {
    width: 150px;
  }

  .logo-box h1 {
    font-size: 26px;
    margin-bottom: 5px;
  }

  h2{
    margin-top: 20px;
    font-size: 19px;
  }

  .theme-switcher {
    margin-top: 0px;
    /* Fundo levemente esbranquiçado e borda visível contra o roxo */
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--cor-divisor);
    /* Garante que o blur funcione bem em cima da imagem */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .theme-switcher button {
    /* Força os ícones inativos a ficarem num cinza quase branco */
    color: rgba(255, 255, 255, 0.85); 
  }

  /* Mantém a visibilidade no hover para os ícones que não estão ativos */
  .theme-switcher button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
  }

  /* INPUTS E LABELS */
    label {
    margin-bottom: 5px;
    font-size: 13px;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"] {
    padding: 14px;
    font-size: 13px;
    margin-bottom: 20px;
    }

    .password-field input {
      margin-bottom: 0;
    }


    /* ALINHAMENTO DE LEMBRAR SENHA + ESQUECEU SENHA */
    .login-options-row {
    margin-top: 0px;
    margin-bottom: 40px;
    font-size: 13px;
    }

    .checkbox{
        gap: 4px;
    }

    [type="checkbox"] {
    width: 15px;
    height: 15px;
    }


    .botao button {
        height: 50px;
    }

    .footer-text {
    font-size: 12px;
    bottom: 11px; 
    }
}


@media (max-width: 480px) {
body {
    padding: 0;
    align-items: flex-start; 
  }

  .login-wrapper {
    gap: 0;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    min-height: 100vh;
    height: auto;
  }

  /* Oculta completamente a caixa de informações */
  .info-box {
    display: none;
  }

  /* Expansão e limpeza visual da caixa de login */
  .login-box {
    width: 100vw;
    max-width: 100%;
    min-height: 100vh;
    height: auto;
    border-radius: 0;
    display: flex;
    border: none;
    box-shadow: none;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px; 
    padding-bottom: 40px;

    /* Imagens de fundo ajustadas apenas na altura para não invadir os inputs */
    --tamanho-topo-frente: 100% 105px; 
    --tamanho-topo-fundo: 80% 190px;
    --tamanho-rodape: 130% 180px;
  }

  .content {
    padding: 0 15px;
  }

  .logo-box {
    margin-top: 0; 
    margin-bottom: 15px;
  }

  .logo-frente {
    width: 140px;
  }

  .logo-box h1 {
    font-size: 24px;
    margin-bottom: 5px;
  }

  h2{
    margin-top: 25px;
    font-size: 18px;
    margin-bottom: 10px;
  }

  .theme-switcher {
    margin-top: 0px;
    right: 10px;
    padding: 2px;
    /* Fundo levemente esbranquiçado e borda visível contra o roxo */
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--cor-divisor);
    /* Garante que o blur funcione bem em cima da imagem */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .theme-switcher button {
    width: 28px;
    height: 28px;
  }

  .theme-switcher button svg {
    width: 14px;
    height: 14px;
  }

  .theme-switcher button {
    /* Força os ícones inativos a ficarem num cinza quase branco */
    color: rgba(255, 255, 255, 0.85); 
  }

  /* Mantém a visibilidade no hover para os ícones que não estão ativos */
  .theme-switcher button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
  }

  /* INPUTS E LABELS */
    label {
    margin-bottom: 5px;
    font-size: 12.5px;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"] {
    padding: 14px;
    font-size: 12.5px;
    margin-bottom: 20px;
    }

    .password-field input {
      margin-bottom: 0;
    }


    /* ALINHAMENTO DE LEMBRAR SENHA + ESQUECEU SENHA */
    .login-options-row {
    margin-top: 0px;
    margin-bottom: 50px;
    font-size: 12.5px;
    }

    .checkbox{
        gap: 2px;
    }

    [type="checkbox"] {
    width: 14px;
    height: 14px;
    }


    .botao button {
        height: 45px;
    }

    .footer-text {
    font-size: 10px;
    bottom: 13px; 
    }
}

@media (max-height: 700px) {
    input[type="email"],
    input[type="password"],
    input[type="text"] {
    padding: 12px;
    font-size: 12px;
    margin-bottom: 14px;
    }

     .password-field input {
      margin-bottom: 0;
    }
}