@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;700&display=swap");

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: "Noto Sans", sans-serif;
    background: var(--background-app);
    color: var(--text-primary);
}

.main-login{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.logo-login{
    width: min(220px, 40vw);
    height: auto;
    margin-bottom: 20px;
}

.titulo-login{
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 35px;
}

.card-login{
    width: 100%;
    max-width: 400px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 20px 40px rgba(0,0,0,.20);
}

.textfield{
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.textfield label{
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.textfield input{
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text-primary);
    transition: .25s;
}

.textfield input::placeholder{
    color: #b3b3b3;
}

.textfield input:focus{
    outline: none;
    box-shadow: 0 0 0 4px rgba(33,150,243,.15);
}

.btn-login{
    width: 100%;
    margin-top: 15px;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: .25s;
    box-shadow: 0 10px 30px rgba(25,118,210,.35);
}

.btn-login:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(25,118,210,.45);
}

.btn-login:active{
    transform: scale(.98);
}

.login-error{
    background: color-mix(in srgb, var(--danger) 12%, transparent);
    color: var(--danger);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.errorlist{
    list-style: none;
}

.errorlist li{
    list-style: none;
}

.footer-login{
    margin-top: 35px;
    color: var(--text-secondary);
    font-size: .9rem;
    text-align: center;
    letter-spacing: .5px;
}

@media (max-width: 480px){

    .logo-login{
        width: 130px;
    }

    .titulo-login{
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .card-login{
        padding: 30px 25px;
    }

}

/* The supplied institutional mark is white; invert it for the light login background. */
[data-theme="light"] .logo-login { filter: invert(1); }