@import url('https://fonts.googleapis.com/css2?family=Belanosima:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1f1f1f;
    color: white;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* header*/
header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #001863;
    min-height: 9.5rem;
    width: 100%;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 1.75rem 1rem;
}

img.icon {
    width: 65%;
    max-width: 15rem;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* main*/
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

section.login-module {
    width: 100%;
    max-width: 450px; 
    text-align: left;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.title-group {
    text-align: center;
    margin-bottom: 1.5rem;
    background-color: transparent !important;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

h1.tit {
    font-size: 2rem;
    color: white;
    background-color: transparent !important;
}

h2 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: white;
}

/* formulário*/
form {
    max-width: 100%;
    margin: 20px auto;
    padding: 25px 20px;
    background-color: transparent;
    border-radius: 10px;
    box-shadow: none; 
    border: 2px solid #555; 
}


input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%; 
    padding: 16px 12px;
    border-radius: 8px;
    border: 2px solid #555;
    background-color: #383838;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem; 
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #4da6ff;
    outline: none;
    box-shadow: 0 0 6px rgba(77, 166, 255, 0.8);
}

/* botão login */
button#btn-login {
    background-color: #007bff !important;
    color: #fff !important;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Belanosima', sans-serif;
    width: 100%;
    margin: 1rem auto;
    display: block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button#btn-login:hover {
    background-color: #0056b3 !important;
    transform: translateY(-2px);
}

/* botão google */
#google {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #fff;
    border: 2px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Belanosima', sans-serif;
    width: 100%;
    max-width: 400px;
    margin: 1rem auto;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease;
    color: #333;
}

#google strong {
    flex-grow: 1;
    text-align: left;
    padding-right: 20px;
}

#google img.google {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#google:hover {
    border-color: #4da6ff;
    transform: translateY(-2px);
}

/* mensagens de erro */
small.erro {
    color: #ff5555;
    font-size: 0.9rem;
    margin-top: -8px;
    margin-bottom: 8px;
    display: block;
}

.erro-login {
    background-color: rgba(255, 85, 85, 0.1);
    border: 1px solid #ff5555; 
    border-radius: 8px; 
    padding: 10px 15px; 
    margin-bottom: 1rem; 
}

.mensagem-erro {
    color: #ff5555;
    font-size: 1rem; 
    text-align: center;
}

/* outros elementos */
main > p.ou {
    text-align: center;
    margin: 1rem 0;
    color: #aaa;
    width: 100%;
    max-width: 450px;
}

.signup-prompt {
    width: 100%;
    max-width: 450px;
    text-align: center;
    margin-top: 3.5rem;
}

.link {
    color: #4da6ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link:hover {
    color: #8ac0ff;
}

.link2 {
    font-size: 1rem;
    font-weight: bold;
    display: block;
}

/* footer */
footer {
    margin-top: auto;
    width: 100%;
    background-color: #1f1f1f;
    height: 6vh;
}

/* responsividade desktop */
@media (min-width: 901px) {

    header {
        min-height: 11rem;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    img.icon {
        width: 60%;
        max-width: 17.5rem;
    }

    main {
        padding: 2.5rem 1.25rem;
    }

    section.login-module {
        max-width: 500px; 
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .title-group {
        background-color: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 1.75rem;
    }

    h1.tit {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.15rem;
    }

    form {
        padding: 28px 24px; 
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        width: 100%; 
        padding: 14px 16px;
        font-size: 1.05rem;
    }

    button#btn-login {
        padding: 14px;
        font-size: 1.15rem;
    }

    #google {
        padding: 14px;
        font-size: 1.05rem;
        max-width: 500px;
    }

    main > p.ou {
        max-width: 500px;
    }

    .signup-prompt {
        max-width: 500px;
    }

    .link2 {
        font-size: 1.1rem;
    }

    small.erro {
        font-size: 0.95rem;
    }

    .erro-login {
        padding: 1rem 1.25rem; 
        border-radius: 9px;
        border: 2px solid #ff5555;
    }

    .mensagem-erro {
        font-size: 1.05rem; 
    }

    footer {
        height: 5.5vh;
    }
}