@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    border: 0;
    font-family: "Poppins", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

ol, ul {
	list-style: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

a{
    text-decoration: none;
    color: white;
}

a:visited{
    text-decoration: none;
    color: white;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #2E332F inset !important;
    box-shadow: 0 0 0 1000px #2E332F inset !important;
    -webkit-text-fill-color: white !important;
    caret-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

input {
    background-color: #2E332F !important;
    box-shadow: 0 0 0 1000px #2E332F inset !important;
    -webkit-box-shadow: 0 0 0px 1000px #2E332F inset !important;
    color: white;
    caret-color: white;
}

body{
    min-height: 100vh;
    background-color: #000000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.85)
        ),
        url("../img/fundo_login.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.img_logo_login{
    width: 240px;
}

main{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 2rem;
}

.titulo_logo{
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
}

.div_logo{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn_autenticacao {
    background: linear-gradient(180deg, #5e983d, #3c6022);
    border-radius: 6px;
    width: 100%;
    padding: 0.7rem;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn_modal_sucesso {
    background: linear-gradient(180deg, #6FAF4B, #4E7A2F);
    color: #0F1A0F;
}



.texto_navegacao_autenticacao{
    font-size: 14px;
    font-weight: 400;
}

.div_navegacao_autenticacao{
    text-align: center;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.div_inputs_autenticacao{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.input_autenticacao {
    background-color: #3F444A;
    border-radius: 6px;
    width: 100%;
    height: 30px;
    box-sizing: border-box;
    color: #EAEAFF;
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
    caret-color: white; 
}

.input_autenticacao::placeholder {
    color: #A8ACB6;
    font-size: 14px;
}

.div_input_icone {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #3F444A;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    box-sizing: border-box;
    gap: 1rem;
    border: 1px solid #2F3350;
    transition: all 0.25s ease;
}

.div_input_icone i.fa-eye, 
.div_input_icone i.fa-eye-slash {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #A8ACB6;
}

.div_input_icone:focus-within {
    border: 1px solid white;
}

.div_input_icone input[type="password"] {
    padding-right: 30px;
}

main{
    width: 90%;
    max-width: 400px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal.hide {
    opacity: 0;
}

.modal-content {
    background-color: #2E332F;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1.8rem 1.4rem;
    text-align: center;
    color: white;
    width: 90%;
    max-width: 330px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    animation: fadeInScale 0.3s ease forwards;
    transform: scale(0.9);
    box-sizing: border-box;
}

.modal-content h2{
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #EAEAEA;
}

.icon-sucesso,
.icon-erro {
    font-size: 52px;
    margin-bottom: 1rem;
}

.icon-sucesso {
    color: #ddb40e;
}

.icon-erro {
    color: #ff4f4f;
}

.btn_modal {
    margin-top: 1rem;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    width: 100%;
    transition: 0.2s ease;
}

.btn_modal_erro {
    background-color: #E53935;
}

.btn_modal_sucesso{
    background: linear-gradient(90deg, #ffcc00, #ffaa00);
    color: black;
}



/* INPUT BASE */
input,
.input_autenticacao,
.div_input_icone {
    background-color: #2E332F !important;
    box-shadow: 0 0 0 1000px #2E332F inset !important;
    -webkit-box-shadow: 0 0 0 1000px #2E332F inset !important;
    color: #EDEDED;
}


.input_autenticacao::placeholder {
    color: #9AA39A;
    font-size: 14px;
}


.div_input_icone {
    border: 1px solid #3E4A3D;
}


.div_input_icone:focus-within {
    border: 1px solid #6FAF4B;
    box-shadow: 0 0 0 1px rgba(111, 175, 75, 0.35);
}



.div_input_icone i {
    color: #9AA39A;
}

.div_input_icone:focus-within i {
    color: #6FAF4B;
}



@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.87);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
