@use postcss-preset-env {
    stage: 0;
}

/* config.css */

:root {
    --baseColor: #cccccc;
}

/* helpers/align.css */

.align {
    display: grid;
    place-items: center;
}

#app {
    display: grid;
    place-items: center;
}

.grid {
    inline-size: 90%;
    margin-inline: auto;
    /*max-inline-size: 30rem;*/

    font-size: 1.3rem;
}

.flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between !important;
}

.flex-container-login {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15%;
}

/* helpers/hidden.css */

.hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* helpers/icon.css */

:root {
    --iconFill: var(--baseColor);
}

.icons {
    display: none;
}

.icon {
    block-size: 1em;
    display: inline-block;
    fill: var(--iconFill);
    inline-size: 1em;
    vertical-align: middle;
}

/* layout/base.css */

:root {
    --htmlFontSize: 100%;

    --bodyBackgroundColor: #2c3338;
    --bodyColor: var(--baseColor);
    --bodyFontFamily: "Open Sans";
    --bodyFontFamilyFallback: sans-serif;
    --bodyFontSize: 0.875rem;
    --bodyFontWeight: 400;
    --bodyLineHeight: 1.5;
}

* {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
    font-size: var(--htmlFontSize);
}

body {
    /* Define a imagem de fundo */
    background-image: url("../imgs/login-wall.webp");

    /* Ajusta o tamanho da imagem de fundo para cobrir todo o elemento */
    background-size: cover;

    /* Define que a imagem de fundo não deve se repetir */
    background-repeat: no-repeat;
    background-color: var(--bodyBackgroundColor);
    color: var(--bodyColor);
    font-family: var(--bodyFontFamily), var(--bodyFontFamilyFallback);
    font-size: var(--bodyFontSize);
    font-weight: var(--bodyFontWeight);
    line-height: var(--bodyLineHeight);
    margin: 0;
    min-block-size: 100vh;
}

/* modules/anchor.css */

:root {
    --anchorColor: #eee;
}

a {
    color: var(--anchorColor);
    outline: 0;
    text-decoration: none;
}

a:focus,
a:hover {
    text-decoration: underline;
}

/* modules/form.css */

:root {
    --formGap: 0.875rem;
}

input {
    background-image: none;
    border: 0;
    color: inherit;
    font: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    transition: background-color 0.3s;
}

input[type="submit"] {
    cursor: pointer;
}

.form {
    display: grid;
    gap: var(--formGap);
}

.form input[type="password"],
.form input[type="text"],
.form input[type="submit"] {
    inline-size: 100%;
}

.form__field {
    display: flex;
}

.form__input {
    flex: 1;
}

/* modules/login.css */

:root {
    --loginBorderRadus: 0.25rem;
    --loginColor: #eee;

    --loginInputBackgroundColor: #3b4148;
    --loginInputHoverBackgroundColor: #434a52;

    --loginLabelBackgroundColor: #363b41;

    --loginSubmitBackgroundColor: #3377cc;
    --loginSubmitColor: #eee;
    --loginSubmitHoverBackgroundColor: #3f86de;
}

.loginBox {
    background: #24282c;
    /* padding: 5px 14px; */
    width: 41%;
    padding: 30px 100px;
    border-radius: 25px;
}

.loginBox1 {
    background: #24282c;
    width: 100%;
    padding: 30px 50px;
    border-radius: 25px;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login {
    width: 100%;
    color: var(--loginColor);
}

.login label,
.login input[type="text"],
.login input[type="password"],
.login input[type="submit"] {
    border-radius: var(--loginBorderRadus);
    padding: 1rem;
}

.login label {
    background-color: var(--loginLabelBackgroundColor);
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    padding-inline: 1.25rem;
}

.login input[type="password"],
.login input[type="text"] {
    background-color: var(--loginInputBackgroundColor);
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

.login input[type="password"]:focus,
.login input[type="password"]:hover,
.login input[type="text"]:focus,
.login input[type="text"]:hover {
    background-color: var(--loginInputHoverBackgroundColor);
}

.login input[type="submit"] {
    background-color: var(--loginSubmitBackgroundColor);
    color: var(--loginSubmitColor);
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.2s;
    animation: colorChangeBkg 4s infinite alternate;
}

.login input[type="submit"]:focus,
.login input[type="submit"]:hover {
    animation-duration: 15s;
    /*animation: colorChangeBkg 10s infinite alternate;*/
}

/* modules/text.css */

p {
    margin-block: 1.5rem;
}

.text--center {
    text-align: center;
}

::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #cccccc;
    opacity: 0.5; /* Firefox */
}

.displayNone {
    display: none !important;
}

.sidebar {
    width: 37%;
    /*height: 100vh;*/
    background-color: rgba(0, 0, 0, 0.7);
    /* padding: 20px; */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-left: -6%;
}

.sidebar h1 {
    width: 100%;
    text-align: center;
    font-size: 30px;
    padding-bottom: 10px;
    padding-top: 10px;
    margin-left: 0 !important;
    margin-top: 0;
    margin-bottom: -25px;
}

.sidebar small {
    display: flow-root;
    width: 100%;
    font-size: 15px;
    padding-bottom: 10px;
    padding-top: 10px;
    margin-left: 0 !important;
    margin-top: 0;
    background: #000;
    padding-left: 60%;
    margin-bottom: 15px;
}

.sidebar p {
    width: 90%;
    text-align: center;
    padding-bottom: 10px;
    padding-top: 10px;
    margin-right: 5%;
    margin-left: 5% !important;
}

.sidebar h1.header {
    background: #000;
    padding-bottom: 10px;
    padding-top: 10px;
    margin-left: 0 !important;
    margin-top: 0;
}

.underscore_login {
    animation: colorChange 4s infinite alternate;
}

@keyframes colorChange {
    0% {
        color: #4da7e6;
    }
    25% {
        color: #4bbb6a;
    }
    50% {
        color: #e25147;
    }
    75% {
        color: #ead14b;
    }
    100% {
        color: #4da7e6;
    }
}

@keyframes colorChangeBkg {
    0% {
        background-color: #4da7e6;
    }
    25% {
        background-color: #4bbb6a;
    }
    50% {
        background-color: #e25147;
    }
    75% {
        background-color: #ead14b;
    }
    100% {
        background-color: #4da7e6;
    }
}

@keyframes colorChangeBkgHover {
    0% {
        background-color: #397ba9;
    }
    25% {
        background-color: #398e51;
    }
    50% {
        background-color: #ac3d36;
    }
    75% {
        background-color: #b9a53b;
    }
    100% {
        background-color: #397dac;
    }
}

@media (max-width: 1440px) {
    body {
        overflow-x: hidden;
    }

    .loginBox {
        background: #24282c;
        width: 48% !important;
        padding: 30px 100px;
        border-radius: 25px;
    }

    .sidebar {
        height: 100vh;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .loginBox {
        width: 100% !important;
        margin-top: 22%;
    }
}

@media (max-width: 768px) {
    .loginBox {
        margin-top: 35%;
        padding: 30px 95px;
        width: 100% !important;
    }
}

@media (max-width: 425px) {
    .loginBox {
        margin-top: 35%;
        padding: 30px 95px;
        width: 64% !important;
    }

    .form__field {
        display: flex;
        width: 100%;
    }

    .loginBox h1 {
        margin-left: 20px;
    }

    .flex-container-login {
        width: 100%;
        margin-top: 30%
    }
}

@media (max-width: 1444px) {
    .loginBox {
        background: #24282c !important;
        width: 58% !important;
        padding: 30px 100px !important;
        border-radius: 25px !important;
        margin-right: 0% !important;
    }
}

@media (max-width: 1024px) {
    .loginBox {
        width: 100% !important;
    }
}
