@import url('./root.css');

.loginContainer {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-wrap: wrap-reverse;
    align-items: center;
    justify-content: center;
    background: var(--lighter-border);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: cover;
}

a {
    text-decoration: none;
}

.loginContainer>.left,
.loginContainer>.right {
    width: 60%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: start;
    height: 2em;


}

.loginCard {
    background-color: var(--background);
    padding: 25px 40px;
    border-radius: 10px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.form_container {
    width: min(350px, 90vw);
    margin-top: 25px;
}

p {
    color: rgb(109, 109, 109);
    margin-bottom: 20px;
}

.inputHolder {
    background: var(--white);
    border: 1px solid var(--lighter-border);
    height: 50px;
    width: min(350px, 90vw);
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 3px;
}

.inputHolder>input {
    width: 90%;
    height: 40px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    user-select: none;
    box-shadow: none;
}

.inputHolder>input::placeholder {
    text-transform: capitalize;
}


#loginButton {
    width: min(350px, 90vw);
    padding: 5px 3px;
    height: 50px;
    background: #091016;
    color: var(--white);
    font-size: 16px;
    border: none;
    outline: none;
    border-radius: 15px;
}

#loadingContainer {
    display: none;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(51, 51, 51, 0.5);
    z-index: 999;
    backdrop-filter: blur(30px);
    align-items: center;
    justify-content: center;
}

.loading {
    display: flex;
    justify-content: center;
}

.loading div {
    width: 1rem;
    height: 1rem;
    margin: 2rem 0.3rem;
    background: var(--bluebell);
    /* Assuming $bluebell is a variable defined elsewhere */
    border-radius: 50%;
    animation: bounce 0.9s infinite alternate;

    &:nth-child(2) {
        animation-delay: 0.3s;
    }

    &:nth-child(3) {
        animation-delay: 0.6s;
    }
}

@keyframes bounce {
    to {
        opacity: 0.3;
        transform: translate3d(0, -1rem, 0);
    }
}

#errorContainer {
    width: min(350px, 90vw);
    color: rgb(255, 129, 129);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}

.highlight-input {
    border: 2px solid red !important;
    /* Adjust the border color as needed */
}

.buttonContainer {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.buttonContainer span {
    color: #AAAAAA;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.extraButtons {
    display: flex;
    width: 100%;
    justify-content: space-between;
    flex-direction: row;
    gap: 12px;
}

.profile-btn-email {
    color: #444444;
    flex: 1;
}

.profile-btn-google {
    color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.profile-btn-google img {
    width: 18px;
    height: 18px;
}

.profile-btn {
    border: 1px solid var(--lighter-border);
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
    padding: 12px;
    border-radius: 8px;
    height: 50px;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

@media (max-width:876px) {
    .loginContainer>.left {
        display: none;
    }

    .loginContainer>.right {
        width: 100vw;
        align-items: start;
        padding: 0;
        margin: 0;
        position: relative;
        top: 0;
        height: 100vh;
        align-items: center;
    }


}