/* 🔹 Aplicando as cores do AVR Software */
:root {
    --primary: #8B5CF6; /* Roxo principal */
    --secondary: #EC4899; /* Rosa secundário */
    --background: #111827; /* Fundo escuro */
    --text-light: #F3F4F6; /* Texto principal */
    --border-translucent: rgba(255, 255, 255, 0.1);
}

/* 🔹 Fundo da tela de login */
html, body {
    height: 100%;
    background: var(--background) !important;
    color: var(--text-light) !important;
}

/* 🔹 Estilo do título principal */
.auth-left h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* 🔹 Estilo do subtítulo */
.auth-left p {
    font-size: 1.25rem;
    text-align: center;
    max-width: 600px;
    margin: 10px auto 20px;
}

/* 🔹 Correção do layout dos cards */
.feature-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

/* 🔹 Estilo dos cards */
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-translucent);
    padding: 1.8rem;
    text-align: center;
    border-radius: 10px;
    width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* 🔹 Efeito hover nos cards */
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* 🔹 Ícones dos cards */
.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* 🔹 Ajuste da seção de login */
.auth-right {
    background: var(--background) !important;
}

/* 🔹 Caixa de login */
.auth-form-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0px 0px 20px rgba(139, 92, 246, 0.3);
    border: 1px solid var(--border-translucent);
    max-width: 550px;
    min-width: 0;
    width: 100%;
    margin: 0 auto;
}
@media (max-width: 575.98px) {
    .auth-form-container {
        max-width: 100%;
        padding: 1.5rem 0.5rem;
    }
}

/* 🔹 Inputs do formulário */
.auth-form-input {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--border-translucent) !important;
    border-radius: 8px !important;
    height: 50px;
    padding-left: 1rem;
}

/* 🔹 Botão de login */
.auth-button {
    background: linear-gradient(to right, var(--primary), var(--secondary)) !important;
    height: 50px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    color: white !important;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0px 0px 8px rgba(139, 92, 246, 0.3);
}

/* 🔹 Hover do botão */
.auth-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* 🔹 Links */
.auth-link {
    color: var(--primary);
    font-weight: bold;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--secondary);
}

/* 🔹 Responsividade */
@media (max-width: 768px) {
    .auth-left h1 {
        font-size: 2.5rem;
    }
    
    .auth-left p {
        font-size: 1.1rem;
    }

    .feature-cards {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 100%;
        max-width: 320px;
    }
}
/* 🔹 Garante que toda a tela tenha o fundo correto */
html, body {
    height: 100%;
    background: var(--background) !important;
    color: var(--text-light) !important;
}

/* 🔹 Define corretamente o layout das colunas */
.auth-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* 🔹 Aplica o fundo correto no lado esquerdo (banner) */
.auth-left {
    flex: 1;
    background: linear-gradient(to right, #111827 20%, #1A1A2E 80%) !important; /* Gradiente escuro */
    color: white !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* 🔹 Título dentro do banner */
.auth-left h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to right, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* 🔹 Texto dentro do banner */
.auth-left p {
    font-size: 1.25rem;
    color: white !important;
    text-align: center;
    max-width: 600px;
    margin-top: 10px;
}

/* 🔹 Corrige os cards */
.feature-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

/* 🔹 Ajusta os cards */
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-translucent);
    padding: 1.8rem;
    text-align: center;
    border-radius: 10px;
    width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* 🔹 Corrige a seção de login */
.auth-right {
    flex: 1;
    background: var(--background) !important;
}


/* 🔹 Ajusta o container do input */
.auth-form-group {
    position: relative !important;
    width: 100% !important;
}

/* 🔹 Estiliza a label corretamente */
.auth-form-group label {
    position: absolute !important;
    top: 50% !important;
    left: 15px !important;
    color: #D1D5DB !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    padding: 0 5px !important;
}

/* 🔹 Ajuste do input */
.auth-form-input {
    width: 100% !important;
    height: 50px !important;
    padding: 12px 15px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--border-translucent) !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

/* 🔹 Quando o input estiver focado ou preenchido, a label sobe */
.auth-form-input:focus + label,
.auth-form-input:not(:placeholder-shown) + label {
    top: -5px !important;
    left: 10px !important;
    font-size: 0.85rem !important;
    color: #8B5CF6 !important;
    background: var(--background) !important;
    padding: 0 5px !important;
    border-radius: 5px !important;
}

/* 🔹 Efeito de foco */
.auth-form-input:focus {
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5) !important;
    outline: none !important;
}

/* 🔹 Ajusta o espaçamento entre o botão e o texto "É novo por aqui?" */
.auth-button {
    margin-bottom: 25px !important; /* Mais espaçamento para não ficar colado */
}

/* Reset completo para os inputs flutuantes */
.form-floating {
    position: relative;
    border: none !important;
    background: transparent !important;
    margin-bottom: 1.5rem;
}

/* Estilo base para o input */
.form-floating .form-control {
    width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--border-translucent) !important;
    border-radius: 8px !important;
    padding: 1.5rem 1rem 0.5rem !important;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

/* Posicionamento inicial da label */
.form-floating > label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: all 0.2s ease;
    margin: 0;
    background: transparent !important;
    height: auto;
    width: auto;
    padding: 0;
    border: none;
    z-index: 2;
}

/* Posicionamento da label quando o input está focado ou tem conteúdo */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    top: 0.5rem;
    font-size: 0.75rem;
    color: white !important; /* Alterado para branco, conforme solicitado */
    opacity: 1;
    background-color: transparent !important; /* Sem fundo */
    padding: 0 !important; /* Sem padding */
    border-radius: 0 !important; /* Sem border-radius */
    font-weight: 600; /* Um pouco mais visível */
    letter-spacing: 0.5px; /* Melhor legibilidade */
}

/* Efeito de foco no input */
.form-floating > .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25);
    outline: none;
}

/* Esconder o placeholder real */
.form-floating > .form-control::placeholder {
    color: transparent;
}
/* Remover o pseudo-elemento ::after da label */
.form-floating > label::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Para ter certeza, também limpamos o ::before se existir */
.form-floating > label::before {
    display: none !important;
    content: none !important;
}

/* Garantir que a label em si não tem estilizações indesejadas */
.form-floating > label {
    background-image: none !important;
}

.form-floating .toggle-password {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 16px;
    margin: auto 0;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.7);
    z-index: 10;
    padding: 0;
}

#password {
    padding-right: 48px !important;
}

input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #23263a inset !important; /* cor de fundo desejada */
    box-shadow: 0 0 0 1000px #23263a inset !important;
    -webkit-text-fill-color: #fff !important; /* cor do texto */
    caret-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}