:root {
    --light-bg-color: #f5f5f5;
    --light-text-color: #333;
    --light-primary-color: #2E4238;
    --light-secondary-color: #89B29E;
    --light-input-bg: #7C7979;
    --light-input-border: black;
    --light-button-bg: #b0c4a1;
    --light-span-bg: #c6dae5;

    --dark-bg-color: #121212;
    --dark-text-color: #f5f5f5;
    --dark-primary-color: #1E3127;
    --dark-input-border: #333;
}

body {
    margin: 0;
    border: none;
    background-image: url(background.png);
    background-repeat: no-repeat;
    transition: background-color 0.3s, color 0.3s;
    overflow-y: hidden;
}

body.light-mode {
    background-color: var(--light-bg-color);
    color: var(--light-text-color);
}

body.dark-mode {
    background-color: var(--dark-bg-color);
    color: var(--dark-text-color);
    background-image: url(background-escuro.png);
}

body.dark-mode #principal-direita {
    background-color: var(--dark-primary-color);
}

body.dark-mode #inputs {
    background-color: var(--dark-input-border);
}

body.dark-mode input {
    background-color: #C8C8C8;
    color: black;
}

.dark-mode input::placeholder,
.dark-mode #cadastre h2,
.dark-mode .btn-Entrar,
.dark-mode #cadastre h2 a {
    background-color: #C8C8C8;
    color: black;
}

body.dark-mode #btns button {
    background-color: #3C6D7B;
}

body.dark-mode .botao, 
body.dark-mode .botao2 {
    background-color:#3B503C;
    color: white;
}

body.dark-mode #sp1, 
body.dark-mode #sp2 {
    background-color: #3C6D7B;
    color: white;
}

main {
    display: flex;
    width: 100%;
}

#principal-esquerda {
    border: none;
    width: 22%;
    background-repeat: no-repeat;
    background-size: contain;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 20%;
}

#principal-direita {
    background-color: var(--light-primary-color);
    border: none;
    width: 82%;
    height: 100vh;
    display: flex;
}

.dark-mode #lateral02 {
    background-color: var(--dark-primary-color);
}

#principal-direita header {
    font-size: 230%;
    margin-top: -2%;
    font-weight: 100;
    text-align: center;
}

#lateral01 {
    width: 90%;
    height: 99vh;
}

#lateral02 {
    width: 10%;
    height: 99vh;
    display: flex;
    background-color: var(--light-primary-color);
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}

h1 {
    font-family: 'Brittany Signature Script', sans-serif;
    font-weight: 100;
    color: white;
    font-size: 2.5rem; /* tamanho base */
    text-align: center;
    margin: 0;
}

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#grupo-inputs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#inputs {
    background-color: var(--light-input-border);
    width: 220%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    border-radius: 15px;
}

.input-container {
    background-color: var(--light-input-border);
    padding: 6px;
    display: flex;
    border-radius: 15px;
}

input {
    padding-left: 10px;
    font-family: "Itim", cursive;
    color: white;
    outline: none;
    border-radius: 15px;
    width: 120%;
    height: 7vh;
    background-color: var(--light-input-bg);
}

::placeholder {
    color: white;
    opacity: 1;
}

#espaçamento {
    margin-bottom: 7%;
}

#btns {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dark-mode .btn-Entrar{
    background-color: #3C6D7B;
}

#btns button {
    margin-top: 25px;
    font-family: "Itim", cursive;
    font-size: 25px;
    width: 150%;
    height: 50px;
    border-radius: 15px;
    background-color: var(--light-secondary-color);
    border-style: none;
}

#btns a {
    font-family: "Itim", cursive;
    color: black;
    font-size: 25px;
    text-decoration: none;
    font-weight: 100;
}

#btns h2 {
    margin-top: 0;
    height: min-content;
}

.botao,
.botao2 {
    background-color: var(--light-button-bg);
    height: 9vh;
    display: inline-block;
    position: relative;
    border-style: none;
}

.botao {
    width: 58%;
    left: -50px;
}

.botao2 {
    margin-top: 13px;
    width: 60%;
    left: 60px;
    align-self: flex-end;
    margin-right: 90px;
}

span a {
    text-decoration: none;
    font-family: "Itim", cursive;
    font-size: x-large;
    font-weight: 100;
    color: #47576E;
}

.dark-mode span a {
    color: white;
}

#sp1, #sp2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--light-span-bg);
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #333;
    position: relative;
    z-index: 1;
}

#sp1 {
    margin-left: 10%;
    margin-top: 7%;
    height: 9vh;
    width: 115%;
    font-size: 16px;
}

#sp2 {
    align-self: flex-start;
    margin-top: 9%;
    left: -22px;
    height: 9vh;
    width: 110%;
    font-size: 20px;
}

#cadastre {
    width: 400px;
    font-size: small;
    font-family: "Itim", cursive;
    background-color: #000;
    color: white;
    padding: 9px;
    border-radius: 19px;
}

#cadastre h2 {
    font-weight: 100;
    margin: 0;
    background-color: #7C7979;
    border-radius: 20px;
    padding: 15px;
}

#cadastre a {
    color: #075831;
    text-decoration: none;
}

.theme-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
}

.theme-btn:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.2);
}

.theme-btn svg {
    width: 24px;
    height: 24px;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body.light-mode .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

body.light-mode .moon-icon {
    opacity: 1;
    transform: rotate(0);
    color: #000;
}

body.dark-mode .moon-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

body.dark-mode .sun-icon {
    opacity: 1;
    transform: rotate(0);
    color: #fff;
}

/* ======= MOBILE ONLY (max-width: 768px) ======= */
@media (max-width: 768px) {
    /* Reset de layout principal */
    main {
      flex-direction: column;
      height: 100vh;
      overflow: hidden;
    }
  
    /* Ajuste do container direito */
    #principal-direita {
      width: 100%;
      height: 85vh;
      margin-top: 20%;
      box-sizing: border-box;
      padding: 0 5%; /* Espaço lateral controlado */
      overflow: visible;
    }
  
    /* Header (título "Ninho") */
    #lateral01 header {
      font-size: 150%;
    }
    h1 {
      font-size: 3rem;
      margin-top: -110%;
      padding-bottom: 20%;
      color: black; /* Light mode default */
    }
    .dark-mode h1 {
      color: white;
    }
  
    /* Inputs (reduzidos e centralizados) */
    #grupo-inputs {
      width: 100%;
      padding: 0 5%;
    }
    #inputs {
      width: 80%; /* Largura reduzida */
      height: 6vh;
      margin: 10px auto;
    }
    input {
      width: 90%; /* Largura interna reduzida */
      height: 5vh;
      margin: 0 auto;
      font-size: 0.95rem;
    }
  
    /* Botão "Entrar" */
    #btns button {
      width: 60%; /* Largura reduzida */
      height: 50px;
      font-size: 1rem;
      margin: 10px auto;
    }
  
    #cadastre {
        margin-top: -10%;
        width: 80%;
        max-width: 300px;
        margin: 100px auto 0;
        padding: 0;
        }

    #cadastre h2 {
        
        margin-top: -10%;
        font-size: 0.85rem;
        margin: 0;
        /* ESTILO DA BORDA (IGUAL AOS INPUTS) */
        border: 1px solid var(--light-input-border) !important;
        background: var(--light-input-bg) !important;
        border-radius: 15px !important;
        color: white !important;
        font-family: "Itim", cursive !important;
        font-weight: 300 !important;
        text-align: center;
    }

    #cadastre a {
        color: #075831 !important;
    }

    /* Dark Mode */
    body.dark-mode #cadastre h2 {
        border: 1px solid var(--dark-input-border) !important;
        background: #C8C8C8 !important;
        color: black !important;
    }
  
    /* Toggle de tema (posicionamento) */
    .theme-btn {
        position: fixed; /* Fixo na tela */
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        z-index: 1000;
        margin: 0;
      }
    
      .theme-btn:hover {
        transform: scale(1.1);
        background: rgba(0, 0, 0, 0.2);
      }
    
      .theme-btn svg {
        width: 20px;
        height: 20px;
      }
    }
  
    /* Esconde botões laterais no mobile */
    .botao,
    .botao2 {
      display: none;
    }
  
    /* Garante que o body não gere scroll */
    body, html {
      height: 100%;
      overflow-y: hidden;
    }
