/* =========================================================
   CONFIGURAÇÃO GERAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;

    background:
        radial-gradient(
            circle at top,
            #1b1b1b 0%,
            #0c0c0c 45%,
            #050505 100%
        );

    color: #ffffff;

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;
}


/* =========================================================
   CONTAINER
========================================================= */

.container-login {
    width: 100%;
    max-width: 420px;

    padding: 40px;

    background:
        rgba(20, 20, 20, 0.92);

    border:
        1px solid #292929;

    border-radius: 16px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.55);
}


/* =========================================================
   LOGO / TÍTULO
========================================================= */

.logo {
    display: block;

    width: fit-content;

    margin:
        0 auto
        8px;

    color: #ffffff;

    text-align: center;
    text-decoration: none;

    font-size: 30px;
    font-weight: 700;

    letter-spacing: 0.5px;

    transition:
        opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.82;
}


/* =========================================================
   SUBTÍTULO
========================================================= */

.subtitulo {
    margin-bottom: 32px;

    color: #8f8f8f;

    text-align: center;

    font-size: 14px;
}


/* =========================================================
   FORMULÁRIO
========================================================= */

#form-login {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 7px;

    color: #cfcfcf;

    font-size: 14px;
}

input {
    width: 100%;

    padding:
        13px
        14px;

    margin-bottom: 20px;

    background: #101010;
    color: #ffffff;

    border:
        1px solid #303030;

    border-radius: 8px;

    outline: none;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

input::placeholder {
    color: #666666;
}

input:hover {
    border-color: #3f3f3f;
}

input:focus {
    background: #121212;

    border-color: #777777;

    box-shadow:
        0 0 0 3px
        rgba(255, 255, 255, 0.05);
}


/* =========================================================
   BOTÃO
========================================================= */

button {
    width: 100%;

    padding: 14px;

    background: #ffffff;
    color: #080808;

    border: none;
    border-radius: 8px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}

button:hover:not(:disabled) {
    transform:
        translateY(-2px);

    background: #f0f0f0;
}

button:active:not(:disabled) {
    transform:
        translateY(0);
}

button:disabled {
    opacity: 0.5;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   MENSAGEM
========================================================= */

#mensagem {
    min-height: 20px;

    margin-top: 18px;

    color: #bdbdbd;

    text-align: center;

    font-size: 14px;
    line-height: 1.4;
}


/* =========================================================
   CADASTRO
========================================================= */

.cadastro {
    margin-top: 25px;

    color: #777777;

    text-align: center;

    font-size: 14px;
    line-height: 1.5;
}

.cadastro a {
    color: #ffffff;

    text-decoration: none;

    font-weight: 700;
}

.cadastro a:hover {
    text-decoration: underline;
}


/* =========================================================
   FOCO POR TECLADO
========================================================= */

.logo:focus-visible,
.cadastro a:focus-visible,
button:focus-visible {
    outline:
        2px solid #ffffff;

    outline-offset: 4px;
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 500px) {

    body {
        padding: 20px;
    }

    .container-login {
        padding:
            30px
            22px;
    }

    .logo {
        font-size: 28px;
    }

}


/* =========================================================
   CELULAR PEQUENO
========================================================= */

@media (max-width: 360px) {

    body {
        padding: 14px;
    }

    .container-login {
        padding:
            26px
            18px;
    }

}


/* =========================================================
   ACESSIBILIDADE
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}