.login {
    display: flex;
    justify-content: center;
    /* Centraliza na horizontal */
    align-items: center;
    /* Centraliza na vertical */
    width: 100vw;
    /* Garante que ocupa toda a largura da tela */
    height: 100vh;
    /* Ocupa toda a altura da tela */
    min-height: 100vh;
    color: #6A9C5C;
    /* Garante altura mínima em navegadores bugados */
}

.login__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    width: 70%;
    height: 82%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    box-shadow: 1px 1px 8px rgba(93, 93, 93, 0.5)
}

.login__icon-user {
    /* define o diâmetro do círculo */
    --circle-size: min(150px, 20vw);
    width: var(--circle-size);
    height: var(--circle-size);
    max-width: 150px;
    max-height: 150px;
    margin: min(20px, 5vw);
    background-color: #6A9C5C;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

    /* 60% do círculo, mas nunca abaixo de 24px nem acima de 48px */
    --icon-size: clamp(24px, calc(var(--circle-size) * 0.6), 48px);
    font-size: var(--icon-size);
}

.login__icon-user i {
    /* herda 1em = --icon-size */
    font-size: 1em;
    line-height: 1;
    color: #fff;
}

.login__title {
    font-weight: 300;
    margin: min(20px, 5vw);
}

.login__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    gap: 5px;
    padding: 20px;
    font-weight: 100;
    font-size: 1.2em;
}

.login__form input {
    background: rgba(255, 255, 255, 0.7);
    border: 0.5px solid #fff;
    border-radius: 20px;
    margin: 0 0 10px 0;
    padding: 10px;
    outline: none;
    color: #6A9C5C;
    box-sizing: border-box;
    box-shadow: 1px 1px 8px rgb(182, 182, 182, 0.5)
}

.login__form input:hover {
    box-shadow: 1px 1px 8px rgba(255, 255, 255, 1);
}

.login__form label {
    margin-left: 5%;
}

.login__form button {
    display: flex;
    justify-content: center;
    align-self: center;
    width: 150px;
    background: #6A9C5C;
    color: #ffff;
    font-weight: bold;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 20px;
    margin: 10px;
    padding: 10px;
    outline: none;
    /* define duração e propriedades a animar */
    transition: background-color 0.2s ease-in-out,
        border 0.2s ease-in-out, box-shadow 0.5s ease-in-out;
    box-sizing: border-box;
    box-shadow: 1px 1px 8px rgb(182, 182, 182, 0.5)
}

.login__form button:hover {
    background-color: #c1deaf;
    color: #6A9C5C;
    border: 0.5px solid #FFF;
    box-shadow: 1px 1px 8px rgba(255, 255, 255, 1);
}

.login__sem-login {
    font-size: 1em;
    font-weight: 100;
    color: #6A9C5C;
    margin: 10px;
}

.login__esqueci-senha {
    font-size: 0.8em;
    font-weight: 100;
    color: #6A9C5C;
    margin: 15px;
}

a.login__sem-login:hover,
a.login__esqueci-senha:hover {
    color: #edffd8;
}

.login__sem-login:visited,
.login__esqueci-senha:visited {
    color: inherit;
}

span.error {
    color: #f85050;
    font-size: 1em;
}

@media (max-width: 900px) {
    .login__form {
        width: 80%;

    }
}