@import url('style.css');



.login-page {
    min-height: 100vh;
    background-image: url("../img/loginBackground2.png");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    height: 65vh;
    width: 50vw;
    
    
    display: grid;
    grid-template-columns: 1fr 1fr;

    border-radius: 30px;
    background: linear-gradient(90deg, transparent 0 50%, rgba(255, 255, 255, 0.5) 50% 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

    transform: translateY(60px);
    animation: subirFormulario 0.9s ease-out forwards; 
    
}

@keyframes subirFormulario {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-ldisplay {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 1;
    grid-row: 1;
    border-radius: 30px;
    background: transparent;
}

.login-icons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.login-rdisplay {
    width: 30vw;
    background-color: rgb(251, 251, 252);
    grid-column: 2;
    grid-row: 1;
    border-radius: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 60px rgba(22, 20, 24, 0.1);  
}

.login-header {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10%;
    gap: 15px;
}

.login-form {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 12%;
    gap: 25px;
}

.login-footer {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-title {
    font-weight: 700;
    font-size: 2.25rem;
}

.login-subtitle {
    width: 70%;
    font-weight: 400;
    font-size: 0.875rem;
    color: rgb(149, 145, 156);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-weight: 600;
    font-size: 1rem;
    color: rgb(22, 20, 24);
}
.form-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    font-weight: 400;
    font-size: 1rem;
    color: rgb(73, 73, 73);
    background-color: rgb(250, 250, 250);
    border-radius: 20px;
}

.form-input:focus {
    outline: none;
}

.form-input::placeholder {
    color: rgb(149, 145, 156);
    font-weight: 400;
    font-size: 1rem;
}

.input-group {
    width: 85%;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 10px;
    background-color: rgb(250, 250, 250);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(22, 20, 24, 0.1);
}

.input-show {
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.input-show svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.input-show:hover {
    
    color: #b0b0b0;
}

.input-show:hover svg {
    transform: scale(1.15);
}

.icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.icon-register {
    width: 30px;
    height: 30px;
    color: #888888;
}

.form-link {
    width: 30%;
    display: flex;
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    color: rgb(149, 145, 156);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.form-link:hover {
    text-decoration: underline;
    transform: scale(1.01);
}

.form-button {
    width: 86.5%;
    background: rgb(152, 150, 255);
    margin-top: 25px;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    padding: 7px 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.form-button:hover {
    transform: scale(1.02);
    background: rgb(112, 100, 223);
}

.login-footer p {
    font-weight: 400;
    font-size: 0.875rem;
    color: rgb(149, 145, 156);
}

.login-footer a {
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    color: rgb(199, 166, 255);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-footer a:visited {
    color: rgb(199, 166, 255);
}


.input-group:has(#emailUsuario.invalido),
.input-group:has(#nomeUsuario.invalido),
.input-group:has(#senhaUsuario.invalido) {
    border: 1px solid red;
}

.input-group:has(.invalido) svg path {
    stroke: #e74c3c;
}

.input-group:has(.invalido) button svg path,
.input-group:has(.invalido) button svg {
    fill: #e74c3c;
    color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 5px;
}


/*Isso deixa o fundo azul que aparece ao preencher os inputs, invisivel, na vdd só atrasa por essa quantidade de segundos :/ */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
  transition: background-color 500000s ease-in-out 0s;
  -webkit-text-fill-color: #1f1506 !important;
}