* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

/* Formulário de Login */
._container {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0,25,25,0.8),rgba(0,25,25,0.8)), url('../../../assets/login/bgLog.webp');
    background-position: center;
    background-size: cover;
    padding-bottom: 5%;
}

.error-message { 
    align-items: center;
    color: red;
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 490px;
    /* max-height: auto; */
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #061A1A;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    border-radius: 15px;
    padding: 50px 60px 80px 50px;
    justify-content: center;
    transition: max-width 0.4s;
}
.input-group, .z-index-container {
    display: flex;
    flex-direction: column;
    gap: 16px !important;
}
.form-box::before {
    content: '';
    position: absolute;
    left: 35%;
    width: 150px;
    height: 100vmax;
    background: linear-gradient(#04ffea, #6701ff);
    animation: animate 5s linear infinite;
}
.form-box::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 15px;
    background: #061A1A; 
    height: auto;
    overflow-y: auto;
} 

.form-box.expanded {
    display: flex;
    height: fit-content;
    max-height: fit-content;
    max-width: 720px;
    overflow-y: hidden;
    .input-group {
        max-height: unset;
        transition: max-height 0.4s;
    }
} 

/* Linhas animadas */
@keyframes animate
{
    0%
    {
        transform: rotate(0deg);
    }
    100%
    {
        transform: rotate(360deg);
    }
}
.form-box h1 {
    font-size: 30px;
    margin: 0;
    /* margin-bottom: 60px; */
    color: #fff;
    position: relative;
    z-index: 10;
}
.form-box h1::after {
    width: 30px;
    height: 4px;
    border-radius: 3px;
    background: #00a093;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* SVG dos inputs */
img {
    position: absolute;
    height: 20px;
    width: 20px;
    color: #fff;
    left: 5%;
}

/* Inputs */
.input-field {
    background: #0B2626;
    /* margin: 15px 0; */
    border-radius: 6px;
    display: flex;
    align-items: center;
    width: 100%;
    max-height: 65px;
    transition: max-height 0.5s;
    overflow: hidden;
    /* background-size: 20px; */
    padding-left: 30px;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
    border: 1px solid transparent;
    transition: border-color 0.3s;
}
.input-field:hover {
    border-color: rgb(0, 255, 251);
}
input {
    /* margin-bottom: 5%; */
    width: 100%;
    background: inherit;
    border: 0;
    outline: 0;
    padding: 18px 15px;
    padding-left: 20px;
    color: #b3b2b2;
    font-size: 14px;
    /* margin-top: 5%; */
}
.input-field i {
    /* margin-left: 15px; */
    color: #999;
}

/* Preenchimento automático do input */
input:-webkit-autofill {
    -webkit-text-fill-color: #b3b2b2 !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #b3b2b2 !important;
}
.input-field {
    position: relative;
    width: 100%;
}
input::placeholder {
    color: #b3b2b2;
}

input:-webkit-autofill::first-line {
    color: #b3b2b2 !important;
}
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #0B2626 inset !important;
    border: none; /* Removendo a borda padrão */
}

/* Visualização da senha */
#toggle {
    position: absolute;
    left: 18px;
    width: 22px;
    height: 22px;
    cursor: pointer;
}
#toggle.show {
    background: url(../../../assets/login/svg/eye.svg);
    background-size: cover;
}
#toggle.hide {
    background: url(../../../assets/login/svg/eye-off.svg);
    background-size: cover;
}

/* Esqueci a senha */
form p {
    text-align: left;
    font-size: 13px;
    color: #fff;
    line-height: 0.1; 
}
form p a {
    text-decoration: none;
    color: #00a093;
}

/* Botões */
.btn-field {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 1%;
}
.btn-field button {
    flex-basis: 48%;
    background: #0addcb;
    color: #fff;
    height: 40px;
    border-radius: 20px;
    border: 0;
    outline: 0;
    cursor: pointer;
    transition: background 0.4s;
}
.btn-field button:hover {
    background: #07a094;
    transform: translate(1.1);
}
.input-group {
    height: 100%;
    max-height: 280px;
}
.btn-field button.disable {
    gap: 18px;
    background: #eaeaea;
    color: #2f2f2f;
}
.z-index-container {
    position: relative;
    z-index: 100;
}

/* Cadastro */
.cadastro-form {
    /* margin-top: 20%; */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-width: 100%;
    padding: 20px; 
    background: #061A1A;
    border-radius: 8px;
    z-index: 1;
    text-align: left;
}

/* Link de redirecionamento */
.back-link {
    margin-top: 15px;
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    transition: color 0.3s;
    margin-left: 15px;
}
.back-link:hover {
    color: #fff;
}
.arrow {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #fff;
    display: inline-block;
    vertical-align: middle;
}
.text {
    display: inline-block;
    vertical-align: middle;
    margin-left: 7px;
}

.main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}