/* ===============================================================
   LOGIN — VASIS
   =============================================================== */

.login {
    width: 100%;
}

/* ---------------------------------------------------------------
   Logo
   --------------------------------------------------------------- */

.login-marca {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
}

    .login-marca img {
        display: block;
        width: auto;
        max-width: 190px;
        max-height: 72px;
        object-fit: contain;
    }

/* ---------------------------------------------------------------
   Cabeçalho
   --------------------------------------------------------------- */

.login-cabecalho {
    text-align: center;
    margin-bottom: 2rem;
}

.login h1 {
    margin: 0;
    color: #111827;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -.025em;
}

.login .subtitulo {
    margin: .55rem 0 0;
    color: #6b7280;
    font-size: .9rem;
    line-height: 1.5;
}

/* ---------------------------------------------------------------
   Campos
   --------------------------------------------------------------- */

.login-campo {
    margin-bottom: 1.15rem;
}

    .login-campo label {
        display: block;
        margin-bottom: .45rem;
        color: #374151;
        font-size: .82rem;
        font-weight: 600;
    }

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .login-input-wrapper svg {
        position: absolute;
        left: .9rem;
        width: 18px;
        height: 18px;
        fill: none;
        stroke: #8a94a6;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
        pointer-events: none;
        z-index: 1;
    }

    .login-input-wrapper input {
        width: 100%;
        min-height: 46px;
        padding: .7rem .85rem .7rem 2.7rem;
        box-sizing: border-box;
        border: 1px solid #d7dce5;
        border-radius: .65rem;
        background: #f9fafb;
        color: #1f2937;
        font-family: inherit;
        font-size: .9rem;
        outline: none;
        transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    }

        .login-input-wrapper input::placeholder {
            color: #a3aab7;
        }

        .login-input-wrapper input:hover {
            border-color: #b9c1ce;
            background: #fff;
        }

        .login-input-wrapper input:focus {
            border-color: #e59a2f;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(229, 154, 47, .13);
        }

/* ---------------------------------------------------------------
   Erro
   --------------------------------------------------------------- */

.login-erro {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: .35rem 0 1.15rem;
    padding: .75rem .85rem;
    border: 1px solid #f2c7cb;
    border-radius: .6rem;
    background: #fff5f5;
    color: #a52a32;
    font-size: .78rem;
    line-height: 1.45;
}

    .login-erro svg {
        flex: 0 0 auto;
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        margin-top: .05rem;
    }

/* ---------------------------------------------------------------
   Botão
   --------------------------------------------------------------- */

.login-botao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    min-height: 47px;
    margin-top: 1.5rem;
    padding: .7rem 1rem;
    border: 1px solid #d88922;
    border-radius: .65rem;
    background: #e59a2f;
    color: #fff;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
    transition: background-color .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
}

    .login-botao:hover:not(:disabled) {
        background: #d98d24;
        border-color: #ca7f1d;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
    }

    .login-botao:active:not(:disabled) {
        transform: translateY(1px);
    }

    .login-botao:disabled {
        cursor: default;
        opacity: .7;
    }

    .login-botao svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ---------------------------------------------------------------
   Loading
   --------------------------------------------------------------- */

.login-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: login-spin .7s linear infinite;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------------------------------------------------------------
   Rodapé
   --------------------------------------------------------------- */

.login-rodape {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .45rem;
    margin-top: 1.75rem;
    color: #9ca3af;
    font-size: .68rem;
}

    .login-rodape span:first-child {
        color: #6b7280;
        font-weight: 700;
        letter-spacing: .04em;
    }

.login-separador {
    color: #d1d5db;
}

/* ---------------------------------------------------------------
   Responsividade
   --------------------------------------------------------------- */

@media (max-width: 480px) {

    .login-marca {
        margin-bottom: 1.35rem;
    }

        .login-marca img {
            max-width: 160px;
            max-height: 62px;
        }

    .login-cabecalho {
        margin-bottom: 1.5rem;
    }

    .login h1 {
        font-size: 1.45rem;
    }

    .login .subtitulo {
        font-size: .82rem;
    }
}
