/* Configurações básicas e cores */
:root {
    --dark-bg: #1D1A1A; /* Fundo principal escuro */
    --light-bg: #ffffff; /* Fundo da coluna do formulário */
    --form-bg: #1D1A1A; /* Fundo do container de login/cadastro */
    --yellow-accent: #FFBC48; /* Cor amarela/laranja dos botões e destaque */
    --text-light: #ffffff;
    --text-dark: #333333;
}

/* Defina Inter como a fonte padrão para o corpo do site */
body {
    display: flex;
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif; /* FONTE PADRÃO: INTER */
    background-color: var(--light-bg);
}

/* ... outras regras CSS ... */

/* Aplique Josefin Sans apenas ao título */
.bem-vindo {
    font-family: 'Josefin Sans', sans-serif; /* FONTE ESPECÍFICA: JOSEFIN SANS */
    
    font-size: 4em; 
    font-weight: bold; 
    margin-bottom: 20px;
    line-height: 1.2;
}

/* ... o restante do seu código CSS (a descrição, tabs e inputs herdarão a Inter do body) ... */
/* Coluna Esquerda (Dark Side) */
.left-panel {
    width: 60%;
    background: url("../assets/Lucas&PH.png") no-repeat center center;
    background-size: cover;
    color: var(--text-light);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.left-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); 
}

.left-panel * {
    position: relative;
    z-index: 2;
}


.icon img {
    width: 300px; /* Tamanho do ícone */
    height: auto;
}

/* Coluna Direita (Light Side - Container principal) */
.right-panel {
    width: 60%; /* Ajuste a largura complementar */
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    box-sizing: border-box;
}

.descricao p {
    color: var(--text-dark);
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: center;
}

/* Container do Formulário (Box Login/Cadastro) */
.box-login {
    width: 100%;
    max-width: 500px; /* Limite a largura do box */
    background-color: var(--form-bg);
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden; /* Para conter os elementos internos */
    color: var(--text-light);
}

/* Tabs de Login/Cadastro */
.tabs {
    display: flex;
    width: 100%;
}

.tab-button {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
    font-size: 1em;
}

.tab-button.login {
    background-color: transparent; /* Padrão, emulado como "não selecionado" */
    color: var(--text-light);
}

.tab-button.cadastrar {
    background-color: var(--yellow-accent); /* Abas selecionada */
    color: var(--text-dark);
}

/* Estilo para os campos de entrada (substituindo <p> e <hr>) */
.input-group {
    padding: 15px 25px 5px 25px; /* Espaçamento interno */
}

.input-label {
    font-size: 0.9em;
    color: var(--text-light);
    opacity: 0.7;
    margin-bottom: 5px;
    display: block;
}

.input-field {
    width: 100%;
    padding: 8px 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--text-light); /* Linha divisória */
    color: var(--text-light);
    font-size: 1.1em;
    margin-bottom: 15px; /* Espaço após a linha */
}

.input-field:focus {
    outline: none;
    border-bottom: 1px solid var(--yellow-accent);
}

/* Link "Cep" em azul, como na imagem */

/* Botão OK */
.OK {
    width: calc(100% - 50px); /* 100% menos o padding lateral */
    margin: 20px 25px;
    padding: 15px;
    background-color: var(--yellow-accent);
    color: var(--text-dark);
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.OK:hover {
    background-color: #ffb733;
    color: #fff;
}
/* ================================
      RESPONSIVIDADE - MOBILE
================================ */
@media (max-width: 900px) {

    body {
        flex-direction: column; /* Empilha os painéis */
        min-height: auto;
    }

    .left-panel {
        width: 100%;
        height: 300px; /* Altura da imagem no mobile */
        padding: 40px 20px;
    }

    .bem-vindo {
        font-size: 2em; /* Título menor */
    }

    .icon img {
        width: 180px;
    }

    .right-panel {
        width: 100%;
        padding: 30px 20px;
    }

    .box-login {
        width: 100%;
        max-width: 400px;
    }

    .input-field {
        font-size: 1em;
    }

    .OK {
        font-size: 1em;
    }
}

/* Celulares pequenos */
@media (max-width: 500px) {

    .left-panel {
        height: 240px;
    }

    .bem-vindo {
        margin-top: 20%;
        font-size: 1.7em;
    }

    .icon img {
         margin-top: -20%;
        width: 150px;
    }

    .box-login {
        max-width: 95%;
    }
}
/* TITULOS */
.form-title {
  font-size: 22px;
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 14px;
  margin-bottom: 22px;
  color: #9ca3af;
}

/* LOGIN */
.login-view {
  background: #0f0f0f;
  padding: 34px;
  border-radius: 18px;
}

.login-view .input-label {
  color: #fdfdfd;
}

.login-btn {
  background: #facc15;
  color: #0f0f0f;
  font-weight: bold;
}

/* CADASTRO */
.cadastro-view {
  background: #0e0e0e;
  padding: 38px;
  border-radius: 18px;
}

.cadastro-view .input-label {
  color: #444;
}

.cadastro-btn {
  background: #0f0f0f;
  color: #facc15;
  font-weight: bold;
}

.cadastro-info {
  margin-top: 16px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

/* ERRO */
.error-msg {
  color: #f87171;
  text-align: center;
  margin-bottom: 16px;
}
/* ================= LOADING LOGIN ================= */
#login-loading {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}

#login-loading span {
  margin-top: 18px;
  color: #facc15;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* SPINNER */
.loader {
  width: 46px;
  height: 46px;
  border: 4px solid #1f1f1f;
  border-top: 4px solid #facc15;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.newsletter-form input {
  width: 260px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #0f0f0f;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.newsletter-form input::placeholder {
  color: #777;
}

.newsletter-form input:focus {
  border-color: #facc15;
}

.newsletter-form button {
  padding: 12px 18px;
  border-radius: 6px;
  border: none;
  background: #facc15;
  color: #111;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #eab308;
}
