@import "global/colors.css";
@import "global/shadows.css";

.auth-textfield{
    width: 100%;
    border-radius: 1.3rem;
    padding: 0.7rem 1rem 0.7rem 1rem;
    font-size: 1.1rem;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(3rem);
    color: black;
    background-color: rgba(192, 192, 192, 0.2);
    box-shadow: var(--textfield-shadow);
    border: 2px solid rgba(255,255,255,0.2);
    outline: none;
    overflow: scroll;
}

.auth-textfield.errored{
    border: 2px solid var(--error-border);
}

.counter{
    display: flex;
    align-items: end;
    justify-content: end;
    color: white;
    margin-right: 1rem;
}

.counter.errored{
    color: var(--error-color);
}

.auth-textfield:hover,
.auth-textfield:focus{
    color: var(--grey-shade-400);
    background-color: rgb(255, 255, 255, 0.6);
}

.auth-textfield:hover.errored,
.auth-textfield:focus.errored{
    border: 2px solid var(--error-border-focused);
}

.outer-textfield-container{
    width: 100%;
    padding: 0 0.5rem;
}

.textfield-label{
    color: white;
    margin-bottom: 5px;
    margin-left: 0.5rem;
    font-weight: 300;
}

@media screen and (max-width: 450px) {
    .outer-textfield-container{
        padding: 0;
    }
}