/* ==========================================================
   ESFLOW
   LOGIN
========================================================== */


/* ==========================================================
   RESET
========================================================== */

* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


html,
body {
    width: 100%;
    min-height: 100%;
}


body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}


/* ==========================================================
   PÁGINA
========================================================== */

.login-page {
    position: relative;

    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 32px;

    background: #05080D;

    overflow: hidden;
}


/* ==========================================================
   IMAGEM DE FUNDO
========================================================== */

.login-background {
    position: fixed;

    inset: 0;

    z-index: 0;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, .32),
            rgba(0, 0, 0, .48)
        ),
        url("../img/background-esflow.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}


/* ==========================================================
   CONTAINER
========================================================== */

.login-container {
    position: relative;

    z-index: 1;

    width: 100%;
    max-width: 440px;

    margin: 0 auto;
}


/* ==========================================================
   CARD
========================================================== */

.login-card {
    width: 100%;

    padding: 38px 38px 30px;

    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;

    background: rgba(13, 18, 27, .88);

    box-shadow:
        0 24px 70px rgba(0, 0, 0, .50);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ==========================================================
   LOGO
========================================================== */

.login-logo {
    display: flex;

    justify-content: center;

    margin-bottom: 26px;
}


.login-logo img {
    display: block;

    width: auto;
    max-width: 230px;
    max-height: 80px;

    object-fit: contain;
}


/* ==========================================================
   CABEÇALHO
========================================================== */

.login-header {
    margin-bottom: 26px;

    text-align: center;
}


.login-header h1 {
    margin: 0 0 7px;

    color: #FFFFFF;

    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}


.login-header p {
    margin: 0;

    color: #9CA3AF;

    font-size: 13px;
    font-weight: 400;
}


/* ==========================================================
   MENSAGENS
========================================================== */

.login-messages {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-bottom: 18px;
}


.login-message {
    width: 100%;

    padding: 10px 12px;

    border: 1px solid #FECACA;
    border-radius: 8px;

    background: #FEF2F2;

    color: #991B1B;

    font-size: 13px;
    line-height: 1.4;
}


/* ==========================================================
   FORMULÁRIO
========================================================== */

.login-form {
    display: flex;

    flex-direction: column;

    gap: 17px;
}


/* ==========================================================
   CAMPOS
========================================================== */

.login-field {
    display: flex;

    flex-direction: column;

    gap: 6px;
}


.login-field label {
    color: #D1D5DB;

    font-size: 13px;
    font-weight: 600;
}

.login-field input {
    width: 100%;
    height: 44px;

    padding: 0 13px;

    border: 1px solid #374151;
    border-radius: 9px;

    outline: none;

    background: rgba(17, 24, 39, .92);

    color: #FFFFFF;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color .2s,
        box-shadow .2s,
        background-color .2s;
}


.login-field input::placeholder {
    color: #6B7280;
}


.login-field input:focus {
    border-color: #FF7A00;

    background: #111827;

    box-shadow:
        0 0 0 3px rgba(255, 122, 0, .15);
}


/* ==========================================================
   AUTOFILL
========================================================== */

.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:hover,
.login-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #FFFFFF !important;

    -webkit-box-shadow:
        0 0 0 1000px #111827 inset !important;

    caret-color: #FFFFFF;

    border: 1px solid #374151;

    transition:
        background-color 9999s ease-out;
}

/* ==========================================================
   SENHA
========================================================== */

.login-password {
    position: relative;
}


.login-password input {
    padding-right: 48px;
}


.login-password-toggle {
    position: absolute;

    top: 50%;
    right: 6px;

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 0;

    border-radius: 7px;

    background: transparent;

    color: #9CA3AF;

    font-size: 17px;

    cursor: pointer;
}


.login-password-toggle:hover {
    background: #F3F4F6;

    color: #111827;
}


/* ==========================================================
   BOTÃO ENTRAR
========================================================== */

.login-submit {
    width: 100%;
    height: 44px;

    margin-top: 3px;

    border: 0;
    border-radius: 9px;

    background: #FF7A00;

    color: #FFFFFF;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color .2s,
        transform .1s;
}


.login-submit:hover {
    background: #E96F00;
}


.login-submit:active {
    transform: translateY(1px);
}


/* ==========================================================
   RODAPÉ
========================================================== */

.login-footer {
    margin-top: 25px;

    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, .10);

    color: #6B7280;

    font-size: 11px;
    font-weight: 500;

    text-align: center;
}


/* ==========================================================
   RESPONSIVO
========================================================== */

@media (max-width: 768px) {

    .login-page {
        justify-content: center;

        padding: 24px;
    }


    .login-background {
        background-position: center;
    }


    .login-container {
        max-width: 410px;
    }


    .login-card {
        padding: 30px 26px 24px;
    }

}


@media (max-width: 480px) {

    .login-page {
        padding: 16px;
    }


    .login-card {
        padding: 26px 20px 22px;

        border-radius: 14px;
    }


    .login-logo img {
        max-width: 200px;
    }


    .login-header h1 {
        font-size: 20px;
    }

}